Monday, February 4, 2008

Haking "admin" from "user"

Using simple command line tools on a machine running Windows XP we will obtain system level privileges, and run the entire explorer process (Desktop), and all processes that run from it have system privileges. The system run level is higher than administrator, and has full control of the operating system and its kernel. On many machines this can be exploited even with the guest account. At the time I’m publishing this, I have been unable to find any other mention of people running an entire desktop as system, although I have seen some articles regarding the SYSTEM command prompt.

Local privilege escalation is useful on any system that a hacker may compromise; the system account allows for several other things that aren’t normally

Possible (like resetting the administrator password).

The Local System account is used by the Windows OS to control various aspects of the system (kernel, services, etc); the account shows up as SYSTEM in the Task Manager

Local System differs from an Administrator account in that it has full control of the operating system, similar to root on a *nix machine. Most System processes are required by the operating system, and cannot be closed, even by an Administrator account; attempting to close

They will result in an error message.

Under normal circumstances, a user cannot run code as System, only the operating system itself has this ability, but by using the command line, we will trick Windows into running our desktop as System, along with all applications that are started from within.

Getting SYSTEM

I will now walk you through the process of obtaining SYSTEM privileges.

To start, lets open up a command prompt (Start > Run > cmd > [ENTER]).

At the prompt, enter the following command, then press [ENTER]:

Code : at

If it responds with an “access denied” error, then we are out of luck, and you’ll have to try another method of privilege escalation; if it responds with “There are no entries in the list” (or sometimes with multiple entries already in the list) then we are good. Access to the at command varies, on some installations of Windows, even the Guest account can access it, on others it’s limited to Administrator accounts. If you can use the at command, enter the following commands, then press [ENTER]:

Code:

at 15:25 /interactive “cmd.exe”

Let’s break down the preceding code. The “at” told the machine to run the at command, everything after that are the operators for the command, the important thing here, is to change the time (24 hour format) to one minute after the time currently set on your computers clock, for example: If your computer’s clock says it’s 4:30pm, convert this to 24 hour format (16:30) then use 16:31 as the time in the command.

If you issue the at command again with no operators, then you should see something similar to this:

When the system clock reaches the time you set, then a new command prompt will magically run. The difference is that this one is running with system privileges (because it was started by the task scheduler service, which runs under the Local System account). It should look like this:

You’ll notice that the title bar has changed from cmd.exe to svchost.exe (which is short for Service Host). Now that we have our system command prompt, you may close the old one. Run Task Manager by either pressing CTRL+ALT+DELETE or typing taskmgr at the command prompt. In task manager, go to the processes tab, and kill explorer.exe; your desktop and all open folders should disappear, but the system command prompt should still be there.

At the system command prompt, enter in the following:

Code:

explorer.exe

A desktop will come back up, but what this? It isn’t your desktop. Go to the start menu and look at the user name, it should say “SYSTEM”. Also open up task manager again, and you’ll notice that explorer.exe is now running as SYSTEM. The easiest way to get back into your own desktop is to log out and then log back in.

What to do now that we have SYSTEM access, everything that we run from our explorer process will have it too, browsers, games, etc. You also have the ability to reset the administrator’s password, and kill other processes owned by SYSTEM. You can do anything on the machine, the equivalent of root; you are now God of the Windows machine. I’ll leave the rest up to your imagination.

Friday, February 1, 2008

Trace the IP adress of the E-mail sender

When you receive an email, you receive more than just the message. The email comes with headers that carry important information that can tell where the email was sent from and possibly who sent it. For that, you would need to find the IP address of the sender. The tutorial below can help you find the IP address of the sender. Note that this will not work if the sender uses anonymous proxy servers.

First of all, the IP address is generally found in the headers enclosed beween square brackets, for instance, [129.130.1.1]

Finding IP address in Gmail
Log into your Gmail account with your username and password.
Open the mail.
To display the email headers,
Click on the inverted triangle beside Reply. Select Show Orginal.
You may copy the headers and use my IP address detection script to ease the process. Or if you want to manually find the IP address, proceed to 5.
Look for Received: from followed by the IP address between square brackets [ ].
Received: from [69.138.30.1] by web31804.mail.mud.yahoo.com via HTTP;
If you find more than one Received: from patterns, select the last one.
Track the IP address of the sender

Finding IP address in Yahoo! Mail
Log into your Yahoo! mail with your username and password.
Click on Inbox or whichever folder you have stored your mail.
Open the mail.
If you do not see the headers above the mail message, your headers are not displayed. To display the headers,
Click on Options on the top-right corner
In the Mail Options page, click on General Preferences
Scroll down to Messages where you have the Headers option
Make sure that Show all headers on incoming messages is selected
Click on the Save button
Go back to the mails and open that mail
You should see similar headers like this:

You may copy the headers and use my IP address detection script to ease the process. Or if you want to manually find the IP address, proceed to 7.
Look for Received: from followed by the IP address between square brackets [ ]. Here, it is 202.65.138.109.
That is be the IP address of the sender.
If there are many instances of Received: from with the IP address, select the IP address in the last pattern. If there are no instances of Received: from with the IP address, select the first IP address in X-Originating-IP.
Track the IP address of the sender


Finding IP address in Hotmail
Log into your Hotmail account with your username and password.
Click on the Mail tab on the top.
Open the mail.
If you do not see the headers above the mail message, your headers are not displayed. To display the headers,
Click on Options on the top-right corner
In the Mail Options page, click on Mail Display Settings
In Message Headers, make sure Advanced option is checked
Click on Ok button
Go back to the mails and open that mail
You should see the email headers now.
You may copy the headers and use my IP address detection script to ease the process. Or if you want to manually find the IP address, proceed to 7.
If you find a header with X-Originating-IP: followed by an IP address, that is the sender's IP address
In this case the IP address of the sender is [68.34.60.59]. Jump to step 9.
If you find a header with Received: from followed by a Gmail proxy like this

Look for Received: from followed by IP address within square brackets[].
In this case, the IP address of the sender is [69.140.7.58]. Jump to step 9.
Or else if you have headers like this

Look for Received: from followed by IP address within square brackets[].
In this case, the IP address of the sender is [61.83.145.129] (Spam mail). Jump to step 9.
* If you have multiple Received: from headers, eliminate the ones that have proxy.anyknownserver.com.
Track the IP address of the sender

clean the virtual memory page files in Windows XP

Virtual memory is a system enhancing functionality implemented for Microsoft Windows operating systems. When you have multiple programs or tasks running at the same time, Windows creates one or more virtual memory page files that store information not used by your memory (RAM). These page files can sometimes contain sensitive information such as credit-card numbers and passwords you enter

Follow this steps
You can make your computer automatically clear the virtual memory pagefiles whenever you shut down your computer. To do this, follow the steps below:
1. Click Start, then click Run...
2. Type "regedit" then click OK. The Registry Editor will be displayed.
3. In the left menu, expand the following registry keys in this order:
HKEY_LOCAL_MACHINE, SYSTEM, CurrentControlSet, Control, Session Manager
4. Click the Memory Management folder,
5. In the right pane, double-click ClearPageFileAtShutdown. The Edit DWORD Value window will be displayed.
6. Type 1 in the Value data field, then click OK.
7. Exit the Registry Editor.
8. Restart your system so the changes can take affect.

Make Your PDF files to speak

 Use following shortcuts for hearing pdf files in abobe reader 6.0 or higher

ctrl+shift+b ---->to hear the whole topic
ctrl+shift+v ---->to hear the page

Tweak: Yahoo Messenger multiple instance

  • Click start then run
  • Write regedit, press enter
  • Goto “HKEY_CURRENT_USER\Software\Yahoo\Pager\Test”
  • Create a DWORD registry value named “Plural” by right clicking the right hand side window.
  • Double click the new DWORD entry and set the value to 1
Now you remain online with two or more different yahoo ids at the same time. It works with Yahoo messenger and Yahoo Mail

Tweak: Google Talk multiple instance

Default Installation of Google Talk doesn’t allow you to login with two different Ids from a single computer. But you can run two different instance of Google Talk at same time on a single computer after tweaking it a little. Just locate the Google Talk shortcut in Start -> Programs -> Google Talk -> Google Talk. Right click on the shortcut and go to properties. A dialog box will open as shown in the image below.

Google Talk Properties

Add “/nomutex” at the end of Target string, it should look like as shown in the image and click ok. That’s all now every time when you want an extra instance of Google Talk, click on this shortcut. Easy!

All hidden apps list within WinXP

Here Is The Complete List:
To run any of these apps go to Start > Run and type the executable name, for example: charmap

WINDOWS XP HIDDEN APPLICATIONS:

1. Character Map = charmap.exe (very useful for finding unusual characters)

2. Disk Cleanup = cleanmgr.exe

3. Clipboard Viewer = clipbrd.exe (views contents of Windows clipboard)

4. Dr Watson = drwtsn32.exe (Troubleshooting tool)

5. DirectX diagnosis = dxdiag.exe (Diagnose & test DirectX, video & sound cards)

6. Private character editor = eudcedit.exe (allows creation or modification of characters)

7. IExpress Wizard = iexpress.exe (Create self-extracting / self-installing package)

8. Mcft Synchronization Manager = mobsync.exe (appears to allow synchronization of files on the network for when working offline. Apparently undocumented).

9. Windows Media Player 5.1 = mplay32.exe (Retro version of Media Player, very basic).

10. ODBC Data Source Administrator = odbcad32.exe (something to do with databases)

11. Object Packager = packager.exe (to do with packaging objects for insertion in files, appears to have comprehensive help files).

12. System Monitor = perfmon.exe (very useful, highly configurable tool, tells you everything you ever wanted to know about any aspect of PC performance, for uber-geeks only )

13. Program Manager = progman.exe (Legacy Windows 3.x desktop shell).

14. Remote Access phone book = rasphone.exe (documentation is virtually non-existant).

15. Registry Editor = regedt32.exe [also regedit.exe] (for hacking the Windows Registry).

16. Network shared folder wizard = shrpubw.exe (creates shared folders on network).

17. File siganture verification tool = sigverif.exe

18. Volume Contro = sndvol32.exe (I've included this for those people that lose it from the System Notification area).

19. System Configuration Editor = sysedit.exe (modify System.ini & Win.ini just like in Win98! ).

20. Syskey = syskey.exe (Secures XP Account database - use with care, it's virtually undocumented but it appears to encrypt all passwords, I'm not sure of the full implications).

21. Mcft Telnet Client = telnet.exe

22. Driver Verifier Manager = verifier.exe (seems to be a utility for monitoring the actions of drivers, might be useful for people having driver problems. Undocumented).

23. Windows for Workgroups Chat = winchat.exe (appears to be an old NT utility to allow chat sessions over a LAN, help files available).

24. System configuration = msconfig.exe (can use to control starup programs)

25. gpedit.msc used to manage group policies, and permissions

Blog Archive