4.5.3 ‘Control the bell overload behaviour’.4.5.2 ‘Taskbar/caption indication on bell’.4.4.8 ‘Control-Alt is different from AltGr’.4.4.5 Controlling Application Keypad mode.4.4.4 Controlling Application Cursor Keys mode.4.4.3 Changing the action of the function keys and keypad.4.4.2 Changing the action of the Home and End keys.4.4.1 Changing the action of the Backspace key.4.3.5 ‘Use background colour to erase screen’. 4.2.4 Options specific to SSH packet logging.4.2.2 ‘What to do if the log file already exists’.4.1.2 Loading and storing saved sessions.Some options can also be changed in the middle of a session, by selecting ‘Change Settings’ from the window menu. PuTTY is configured using the control panel that comes up before you start a session. This chapter describes all the configuration options in PuTTY. If exist nmap_temp2.txt (del nmap_temp2.Previous page next page Chapter 4: Configuring PuTTY If exist nmap_temp.txt (del nmap_temp.txt) Rem Run through all IPs to cache the SSH Host Key if not already cachedįor /F "tokens=*" %%A in (%IPFILE%) do ( echo y | "C:\Program Files\PuTTY\pscp.exe" -l root -i "C:\Program Files\PuTTY\SSH.ppk" -touch %%A:/tmp/test )įor /F "tokens=1" %%A in (%IPFILE%) do ( "C:\Program Files\PuTTY\putty.exe" -ssh %%A -t -l root -i "C:\Program Files\PuTTY\SSH.ppk" -m "C:\Program Files\PuTTY\scripts\%SCRIPT%" ) Set /p KEYCACHE=Scan and cache SSH key (y/n) ? Type "nmap_temp2.txt" | repl " " "" > %IPFILE% Rem remove hidden space at end of IP (requires "repl" be in the batch file directory) Rem nmap formatting is not correct, the following removes extra infoįor /f "tokens=2" %%A in (nmap_temp.txt) do echo %%A > nmap_temp2.txt Nmap -open -n -p22 %RANGE% -oG - | findstr /E Up > nmap_temp.txt Nmap -open -n -p22 -iL %IPFILE% -oG - | findstr /E Up > nmap_temp.txt Rem Check whether IP type is "range" as nmap cannot read an IP range from file and must be type directly in nmap command Set /p SCAN=Do Nmap scan first? (recommended): Rem You must modify the CACHEKEY and SCRIPT section to reflect your SSH key locationĮCHO (Working directory is set to C:\Program Files\PuTTY\scripts\)ĮCHO Enter the IP range(s) as in the following example. This is mostly useful for having a single script (such as updating an SSL certificate) across a range of machines.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |