Pages

Command Prompt hacking Commands

CMD HACKING COMMANDS

Useful Things to do on Command Prompt

First, open your Network Connection and right click and select Properties. Then Select TCP/IP and click on Properties again. Now Click on Advanced and WINS tab. Select Default for NeBIOS.

Now back to the main Local Area Connection window, select File and Print Sharing for Networks and hit enter.

This is just to make sure you have NetBIOS enabled. We will have some fun with NetBIOS on CMD.

First thing you need to know is some very helpfull commands to use on CMD(Command Prompt).

In case you don't know how to get CMD open in your box, then click on Start, then Run, then type "cmd" (no quotes, off course... you know the drill).

Back to commands:

nslookup
net view
net use
net user
ping
tracert
arp
route
nbtstat
netstat
ipconfig


In case you don't know some of them, then just type the command on CMD and hit enter. A little help will show up in your screen. Read it and understand what the command does.

Lets start easy...

1) ping : This command will allow you to know if the host you pinging is alive, which means if it is up at the time of executing the "ping" command.

ping x.x.x.x (x is the IP address)

or

ping www.whatever.com (www.whatever.com is the website you want to ping, but you don't know the IP)

OBS: Keep in mind that if the host you pinging is blocking ICMP packets, then the result will be host down.

2) nslookup : This command has many functionalities.
One is for resolving DNS into IP.
Lets say you know the website URL but you don't know its IP(and you want to find out).

nslookup www.whatever.com (www.whatever.com is the website you want to find out the IP)

Now, another really nice function of nslookup is to find out IP of specific Mail Severs

nslookup (enter)
set type=mx (enter)
yahoo.com

This command will give you the mail server IP of yahoo.com. You can use whatever server you want and if it is listed on DNS, then you get the IP. Simple, isn't it?

OK, now why would you want to have an IP of a mail server?
To send spoofed mail to your friends or even for SE.
In case you looking for "How to spoof email", then look for my "How to spoof email tutorial" http://www.infowar.com/forums/showthread.php?s=&threadid=2360

3) tracert : This command will give you the hops that a packet will travel to reach its final destination.

OBS: This command is good to know the route a packet takes before it goes to the target box.

tracert x.x.x.x (x is the IP address)

or

tracert www.whatever.com (www.whatever.com is the website you don't know the IP)

4) arp : This command will show you the arp table. This is good to know if someone is doing arp poisoning in your LAN.

arp -a

5) route : This command will show you the routing table, gateway, interface and metric.

Code:
route print


6) ipconfig : This command will show tons of very helpful things.
Your IP, gateway, dns in use.

Code:
ipconfig
or

Code:
ipconfig /all

this command will give all that info but for all networks you might have it.

Also, in case you have a dynamic IP and want to change it, then type...

Code:
ipconfig /release (this will release your IP)

ipconfig /renew (this will renew your iP)

OBS: Keep in mind that those commands will change your IP, but the new IP will still be tighed up to you. So don't do anything stupid.

7) netstat : This command will show you connection to your box.

Code:
netstat

or

Code:
netstat -a (this will show you all the listening ports and connection with DNS names)
netstat -n (this will show you all the open connection with IP addresses)
netstat -an (this will combined both of the above)

net view x.x.x.x or computername (will list the available sharing folders on the target box)


Now some hints:

Code:
net use \ipaddressipc$ "" /user:administrator

(this command will allow you to connect to the target box as administrator)

Now if you want to connect to the target box and browse the entire C drive, then use this command:

Code:
net use K: \computernameC$
(this will create a virtual drive on your "my computer" folder)

OBS: Keep in mind that this will only works if the target box doesn't have an administrator password set.

And least but not last, the "help" command.

Quote:
whatevercommand /help

or

Quote:
whatevercommand /?


This command will help you to understand what it does and all the switchs available for each command.

Pin the Show Desktop to Taskbar in Windows 7

Update: Fixed addresses so they now have proper forward slashes. If you don’t see these: \ then please make sure to insert one after each word. Internet Explorer is considered one word with a space in between it. I’m working on fixing the problem with disappearing slashes.

If you’ve just picked up Windows 7, you’re probably wondering where the Show Desktop button has gone. It’s actually now moved to the bottom right hand corner of the screen for quick access. Hovering your mouse over it will activate Aero Peek and allow you to preview the Desktop without actually going to it. This feature is good for taking a quick peek at any Gadgets you may have lying on your desktop.

But if you still want a “Show Desktop” icon in your taskbar, it’s possible. This guide will teach you how to pin Show Desktop properly into the taskbar, not the method that gives you a strange unaligned placement in the taskbar.

How to really pin the Show Desktop to Taskbar in Windows 7

The Fail Pin

How to really pin the Show Desktop to Taskbar in Windows 7

The Win Pin

The guide is actually not as long as it looks. I added a lot of pictures to guide you along the process.

How-to:

1) First, you need to pin an item you don’t actually want in the taskbar. I chose TweetDeck because it stays in the System Tray anyway.

How to really pin the Show Desktop to Taskbar in Windows 7
2) Then you need to create your own Show Desktop icon. You can download the Icon here, or do it yourself.

To do it yourself, open Notepad and paste the following code:

[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop

When you save the file, select All Files from the drop down menu, and name the icon Desktop.scf

How to really pin the Show Desktop to Taskbar in Windows 7

Whether you download or create the desktop file yourself, make sure to save it into this directory:

C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

3) Right click the item you pinned earlier (in my case, TweetDeck) and click on Properties.

4) Edit the Target Field to the following. Change the field yourusername to your Computer name. You can find this by opening the Start Menu and looking at the first item in the darkened area.

How to really pin the Show Desktop to Taskbar in Windows 7

Computer name is shown as the first item on the right side (win7 for me)

Paste this code into the Target Field. Make sure to change yourusername.

C:\Users\yourusername\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Desktop.scf

How to really pin the Show Desktop to Taskbar in Windows 7

5) Now we need to change the icon. Click on Change Icon and paste the following code into the Browse field and press Enter:

%SystemRoot%\system32\imageres.dll

The Show Desktop icon is located somewhere near the middle. This was where mine was located:

How to really pin the Show Desktop to Taskbar in Windows 7

6) You can also rename your icon to Show Desktop so you don’t get confused when editing the taskbar later on.

7) Your icon in the Taskbar will not change unless you log off and log back in or end the explorer.exe process in Task Manager. Regardless, the icon should function like the old “Show Desktop” icon.

If you’re a fan of keyboard shortcuts, Win+D shows the desktop too.