Anyway good job for creating such stuffs.
*But so, if you say that you're a programmer you should compile everything into an exe file, shouldn't you?*
anti yahaa
|
|
Mar 4 2007, 03:12 PM
Return to original view | Post
#1
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
9,257 posts Joined: Aug 2005 From: Not so sure myself Status: 1+3+3=7 |
I am just puzzled why don't you just just a bat file to remove the registy entries as well? You made it to *.exe so that nobody else can edit the executable itself?
Anyway good job for creating such stuffs. *But so, if you say that you're a programmer you should compile everything into an exe file, shouldn't you?* |
|
|
|
|
|
Mar 5 2007, 02:07 PM
Return to original view | Post
#2
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
9,257 posts Joined: Aug 2005 From: Not so sure myself Status: 1+3+3=7 |
QUOTE(zulfajuniadi @ Mar 4 2007, 09:06 PM) Can you do that? the only arguments for regedit from command that i know of are just to import. I'm no programmer myself. (http://www.pctools.com/guides/article/id/1/page/4/) Sorry, this is my first time in making such tool. I wanted to compile everything in .exe, but my c knowledge are limited. Those who are more experienced could shed some light in this matter. The vbs script is just a "suka-suka" script that I wanted to try out. As long as it does it's job, It's gud enough for me. Actually no. I wanted to make a program that can output a text file with user input. I know that there are numerous prog languages out there that can do the job, I'm just more comfortable in using c. My primary programming skills are more to php and vb. The source code is below: CODE #include <stdio.h> #include <conio.h> #include <ctype.h> int main ( void ) { char regowner[80]; char pid[80]; char pns[80]; char conf; FILE *create_reg; FILE *append_reg; printf("Yahaa VB Worm Removal Tool\n\n"); do { printf("Please enter the Registered Owner\n(e.g. Amat bin Dollah)\n>"); fscanf (stdin, " %79[^\n]", ®owner); printf("\nPlease enter the Processor Name\n(e.g. Intel(R) Pentium(R) 4 CPU 2.80GHz)\n>"); fscanf (stdin, " %79[^\n]", &pns); printf("\nPlease enter the Product ID\n(e.g. 12345-123-1234567-12345)\n>"); fscanf (stdin, " %79[^\n]", &pid); printf("\n\n"); printf("You entered:\nRegistered Owner: %s\nProcessor Name: %s\nProduct ID: %s\n\nAre these values correct? (y=yes, n=no)",regowner,pns,pid); scanf(" %c", &conf); } while ( conf != 'y'); create_reg= fopen("append.reg", "w"); fprintf(create_reg, "Windows Registry Editor Version 5.00\n\n"); fclose(create_reg); append_reg= fopen("append.reg", "a"); fprintf(append_reg, "[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run]\n\"autoupdate\"=\"\"\n\n"); fprintf(append_reg, "[HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Main]\n\"Window Title\"=\"\"\n\n"); fprintf(append_reg, "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion]\n\"RegisteredOwner\"=\"%s\"\n\n", regowner); fprintf(append_reg, "[HKEY_LOCAL_MACHINE\\HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0]\n\"ProcessorNameString\"=\"%s\"\n\n", pns); fprintf(append_reg, "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion]\n\"ProductId\"=\"%s\"\n\n", pid); fprintf(append_reg, "[HKEY_CLASSES_ROOT\\vbsfile]\n\"DefaultIcon\"=\"C:\\Windows\\System32\\WScript.exe,2 vbsfile\""); fclose(append_reg); printf("\n\nRegistration Keys written. Press any key to continue\n\n"); getch(); return 0; } @natakaasd I tried "TASKKILL /IM wscript.exe /F" on my computer, It just killed one task. I don't know why, but it didn't kill all the wscript.exe processes. YaHaa spawns more than one instances of wscript.exe. Thats why I used the filter. For the registry query/edit please refer below, I do not know if this might be of use or not, but:- ![]() That's what I'd recalled seeing my "Mentors" using it. |
|
|
Mar 5 2007, 04:43 PM
Return to original view | Post
#3
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
9,257 posts Joined: Aug 2005 From: Not so sure myself Status: 1+3+3=7 |
I disagree. I didn't do research on the Hacked By Pokemon thingy, but I do know that "reg" is able to remove the registry added by it.
http://www.microsoft.com/resources/documen...g.mspx?mfr=true |
|
|
Mar 5 2007, 09:54 PM
Return to original view | Post
#4
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
9,257 posts Joined: Aug 2005 From: Not so sure myself Status: 1+3+3=7 |
QUOTE(natakaasd @ Mar 5 2007, 06:57 PM) Obviously, you misinterpreted everything. Oh, now I get what you mean. Let say you have an entry Value : "Natakaasd hacked by Pokemon". I want to preserve "Natakaasd", BUT Remove "hacked by pokemon". How would you do it with REG? And not to mention, not many amateurs know how to write Fix.REG themselves. That's the purpose of the EXE. Cheers! It could be done, by VB interface I guess? Added on March 5, 2007, 9:56 pmAnyway, it's no biggie, the user can manually edit it back. I don't think that they'll complain much for that. Tho' the sense of the discussion is user input. Cheers! This post has been edited by eXPeri3nc3: Mar 5 2007, 09:56 PM |
|
|
Mar 6 2007, 05:29 PM
Return to original view | Post
#5
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
9,257 posts Joined: Aug 2005 From: Not so sure myself Status: 1+3+3=7 |
Lol, when I can't sleep last night I thought of something that might work, but coding takes a bit more time.
I remember looking at my friend's QBasic book, in DOS it's able to call for user input. Hence:- "Please type the desired text to appear on IE/FF top bar (Blank for default)" Then call the batch to create a reg file based on what the user typed, and import into registry. This will work. Anyway, it seems that this turned out to be a suggestion thread |
| Change to: | 0.0183sec
0.35
6 queries
GZIP Disabled
Time is now: 22nd December 2025 - 06:20 AM |