Nasser Heidari

2008-12-31

Cisco IOS Keyboard Shortcuts

Filed under: Cisco — Nasser Heidari @ 08:01

Up Arrow   ~~~>  Allows you to scroll forward through previous commands
Down Arrow ~~~> Allows you to scroll backwards through previous commands
Ctrl+P (or up arrow)   ~~~>  Displays the last command entered
Backspace ~~~> Removes the character to the left of the cursor
Ctrl+A   ~~~>  Moves the cursor to the beginning of the current line
Ctrl+E ~~~> Moves the cursor to the end of the current line
Ctrl+F   ~~~>  Moves forward one character
Ctrl+B ~~~> Moves backwards one character
Esc+F   ~~~>  Moves forward one word
Esc+B ~~~> Moves backwards one word
Ctrl+R   ~~~>  Redisplays a line (starts a new line, with the same command shown)
Ctrl+U ~~~> Erases a line
Ctrl+W   ~~~>  Erases a word
Tab ~~~> Completes a partial command
Ctrl+Z   ~~~>  Exits configuration mode, returning you to privileged EXEC mode

2008-12-30

How to spoof a MAC address !

Filed under: freebsd,Linux,Microsoft Windows — Nasser Heidari @ 20:06

Don’t rely on MAC filtering alone, however. Please, just don’t. It’s a bad idea. People seem to think “Oh, well, sure a determined attacker can get past it, but not anyone else.” It doesn’t take much determination at all to spoof a MAC address. In fact, I’ll tell you how:

  1. “Listen” in on network traffic. Pick out the MAC address. This can be done with a plethora of freely available security tools, including Nmap.
  2. Change your MAC address.

You can spoof a MAC address when using Nmap with nothing more than a –spoof-mac command line option for Nmap itself to hide the true source of Nmap probes. If you give it a MAC address argument of “0″, it will even generate a random MAC address for you.

For more general MAC address spoofing, your MAC address is trivially reset with tools available in default installs of most operating systems. Here are some examples:

  • Linux: ifconfig eth0 hw ether 03:a0:04:d3:00:11
  • FreeBSD: ifconfig bge0 link 03:a0:04:d3:00:11
  • MS Windows: On Microsoft Windows systems, the MAC address is stored in a registry key. The location of that key varies from one MS Windows version to the next, but find that and you can just edit it yourself. There are, of course, numerous free utilities you can download to make this change for you as well (such as Macshift for MS Windows XP).

Custom tcshrc

Filed under: freebsd — Nasser Heidari @ 09:05
Tags:

chsh -s /bin/tcsh
cd
cat >> .tcshrc
setenv  EDITOR  vi
setenv  PAGER   less
set prompt = “%{33[0;31m%}%p %{33[0;33m%}%n@%m:%{33[0;32m%}%~%#%{33[0m%} ”
set color
alias ls “ls-F”
setenv LSCOLORS ExGxCxDxCxEgDxAbAgdxAx

PRESS CTRL+D to save and Exit

2008-12-06

Cisco Master Password Recovery Page !

Filed under: Cisco — Nasser Heidari @ 17:10

http://www.cisco.com/en/US/products/sw/iosswrel/ps1831/products_tech_note09186a00801746e6.shtml

Blackhat

2008-12-01

PuTTY Connection Manager

Filed under: Microsoft Windows,Miscellaneous — Nasser Heidari @ 12:46

http://puttycm.free.fr/

Features

  • Tabs and dockable windows for PuTTY instances.
  • Fully compatible with PuTTY configuration (using registry).
  • Easily customizable to optimize workspace (fullscreen, minimze to tray, add/remove toolbar, etc…).
  • Automatic login feature regardless to protocol restrictions (user keyboard simulation).
  • Post-login commands (execute any shell command when logged).
  • Connection Manager : Manage a large number of connections with specific configuration (auto-login, specific PuTTY Session, post-command, etc…).
  • Quick connect toolbar to quickly launch a PuTTY connection.
  • Import/Export whole connections informations to XML format (generate your configuration automatically from another tool and import it, or export your configuration for backup purpose).
  • Encrypted configuration database option available to store connections informations safely (external library supporting AES algorithm used with key sizes of 128, 192 and 256 bits, please refer for the legal status of encryption software in your country).
  • Standalone executable, no setup required.
  • Localizable : English (default) and French available (only when using setup version, standalone is english only).
  • Completely free for commercial and personal use : PuTTY Connection Manager is freeware.

MTU Ping Test

Filed under: Microsoft Windows,Networking — Nasser Heidari @ 09:45

MTU Ping Test

A series of ping tests using the command, ping http://www.expedient.net -f -l xxxx, where xxxx is the packet size, can be used to determine the optimal MTU for your connection.

  1. Go to Start and select Run.
  2. Type in cmd (Windows 2000/XP) or command (Windows 98/ME) into the Open: field. Hit the enter key or click OK. The DOS prompt should open.
  3. At the DOS prompt, type in ping http://www.expedient.net -f -l 1492 and hit the Enter key.
  4. Note the results above indicate that the packet needs to be fragmented. Lower the size the packet in increments of +/-10 (e.g. 1472, 1462, 1440, 1400) until you have a packet size that does not fragment.
  5. Begin increasing the packet size from this number in small increments until you find the largest size that does not fragment. Add 28 to that number (IP/ICMP headers) to get the optimal MTU setting. For example, if the largest packet size from ping tests is 1462, add 28 to 1462 to get a total of 1490 which is the optimal MTU setting.

From: http://help.expedient.com/broadband/mtu_ping_test.shtml