SlideShare una empresa de Scribd logo
1 de 34
Descargar para leer sin conexión
Security Testing Tools
- Networking
Praveen Darshanam
http://darshanams.blogspot.com
for absolute beginners ….
http://disects.com/ Praveen Darshanam
Tools
• Operating Systems
– Kali/Backtrack, Fedora Security Spin, Knoppix
• Packet Crafting
– hping, ngrep, sendip, scapy
• Packet Replay
– tcpreplay, tcpreplay-edit, tcpdump
• Scanning
– nmap, nc, metasploit, nessus
• Fuzzing
– metasploit, nikto, nessus, spike, radamsa, webfuzz
• Stats
– dstat, ifstat, iftop, ntop
• Web
– wget, curl, ab
• Debugging
– ping, netstat, tracert, ngrep
• Benchmarking
– ab, iperf, netperf
http://disects.com/ Praveen Darshanam
Command Help
• man command_name
• man ps
• man hping
• command_name –help or
• command_name –h
• dig –h
• nc --help
• info command_name
• info nmap
http://disects.com/ Praveen Darshanam
Backtrack
• Operating System for Security Researchers, Penetration Testers etc
• Plethora of Tools
• Fuzzers, DoS Tools, Scanners, Exploits etc.
http://www.backtrack-linux.org/
http://disects.com/ Praveen Darshanam
nmap
• Port Scanning
• OS fingerprinting
• Version guessing
• nmap [Scan Type(s)] options target_ip/domain
• Useful options
-sN/sF/sX: TCP Null, FIN, and Xmas scans
--scanflags <flags>: Customize TCP scan flags
-sV:Probe open ports to determine service/version info
-O: Enable OS detection
http://disects.com/ Praveen Darshanam
nmap snapshot
http://disects.com/ Praveen Darshanam
ngrep
grep patterns from pcap or live stream
• ngrep is to pcap what grep is to normal files
• Sniffer mode
ngrep –d any ‘HTTP/1.1 200 OK’ port 80
ngrep –d eth0 –i ‘user|pass’ port 21
• Pcap pattern match – regex pattern + BPF filter
ngrep -t ‘pattern’ –I pcap
ngrep –tx –X ‘0xhex pattern’ –I pcap
• Grep’ing, one packet at a time
http://disects.com/ Praveen Darshanam
ngrep snapshot
http://disects.com/ Praveen Darshanam
hping
• Packet crafting
• Port Scanning
• Tcl scripting engine
• Ars Packet Description(APD), string representation of TCP/IP packets
• hping –S 192.168.1.102 –p 80,21 –flood
• hping3>hping send
{ip(ihl=0x5,ver=0x4,tos=0x00,totlen=348,id=29974,fragoff=0,m
f=0,df=1,rf=0,ttl=64,proto=6,cksum=0x6a40,saddr=192.168.1.10
2,daddr=192.168.1.101)+tcp(sport=5555,dport=6666,seq=3879420
856,ack=3264306705,x2=0x0,off=5,flags=pa,win=18760,cksum=0xc
4a2,urp=0)+data(str=You are Hacked!!!)}
http://disects.com/ Praveen Darshanam
hping3 snapshot
http://disects.com/ Praveen Darshanam
nikto
• Web Server Scanner for known Vulnerabilities
• Options
-dbcheck Check database and other key filesfor syntax errors
-evasion Encoding technique (premature URL’s,long strings, tabs, fake
parameters)
-o output format (html, xml, csv)
#nikto -o htm -host 192.168.0.127
http://disects.com/ Praveen Darshanam
nikto snapshot
http://disects.com/ Praveen Darshanam
ethtool
view and change NIC settings
• View settings
– ethtool eth0
– ethtool –i eth0
– ethtool –k eth0
– ethtool –p eth0
• Change settings
– Speed;
ethtool –s eth0 speed 100
– Duplex
ethtool –s eth0 duplex full
– TSO,GSO,checksum
ethtool -K eth0 tso off gso off tx off
http://disects.com/ Praveen Darshanam
ping
• Ping
• Used for trouble shooting connectivity
• Uses ICMP protocol
• Based on raw sockets
• Uses different types, codes based on error
• Ping of death, pretty famous
• Options
-f fast ping -s data size
-c number of packets to send
#ping –f –s 65000 192.168.1.102
http://disects.com/ Praveen Darshanam
netstat
• netstat
-p display the PID and program name of the process owning a socket
-l displays the listening sockets
-t display TCP socket
-u display UDP socket
-c continuous display
--unix unix domain socket
Linux netstat –ant |grep 22
Windows netstat -an -p tcp | find "135"
http://disects.com/ Praveen Darshanam
ab
• Apache HTTP server benchmarking tool
• Part of apache2-utils
• Options
-n Number of requests to perform
-c Number of multiple requests to make
-k Use HTTP KeepAlive feature
#ab –n 1000 –c 50 -k
http://disects.com/ Praveen Darshanam
netcat
• Open and Connect to TCP/UDP Ports
• File Transfer
• Port Scanning
• Server
nc –l 4444
• Client
nc 192.168.1.102 80
• Port Scanning
nc -z 192.168.1.102 1-1023
http://disects.com/ Praveen Darshanam
metasploit
• Penetration testing tool
• Exploit Framework
use use an exploit
set set a variable value
info
infomation of
PAYLOAD/Exploit
PAYLOAD Shellcode to select
RHOST target/victim host
LPORT attackers TCP/UDP port
exploit/run launch exploit
http://disects.com/ Praveen Darshanam
metasploit banner snapshot
http://disects.com/ Praveen Darshanam
metasploit launching exploit snapshot
http://disects.com/ Praveen Darshanam
stats (dstat, ifstat,iftop)
http://disects.com/ Praveen Darshanam
tcpdump, tcpreplay, tcpreplay-edit,
tomahawk
• Tcpdump
• Captures/Sniffs Packets on an Interface
tcpdump –i eth0 –xX –s0 –w capture.pcap
• Tomahawk
• replayed using single machine with two interfaces
• Tcpreplay
• Replays packet captures
tcpreplay -K –C –i eth1 –M 400.00 capture.pcap
• tcpreplay-edit
• Similar to ‘tcpreplay’ with an option to edit the capture
http://disects.com/ Praveen Darshanam
tcpreplay-edit (setup)
http://disects.com/ Praveen Darshanam
tcpreplay-edit (commands)
• Command1 (refer above image)
tcpreplay-edit –C –M 400.00 –l 100000 –enet-
dmac=00:13:D3:A7:00:42,14:D6:4D:14:BB:BB –s
0.0.0.0/0:10.0.0.5/32 –d 0.0.0.0/0:10.0.0.6/32 –I eth1
*.pcap
• Command2 (refer above image)
tcpreplay-edit –C –M 400.00 –l 100000 –enet-
dmac=14:D6:4D:14:BB:BB, 00:13:D3:A7:00:42 –s
0.0.0.0/0:10.0.0.6/32 –d 0.0.0.0/0:10.0.0.5/32 –I eth0
*.pcap
http://disects.com/ Praveen Darshanam
netperf
• netperf - network performance benchmark
• Server
netserver
• Client
netperf –H 192.168.1.102
http://disects.com/ Praveen Darshanam
iperf
• iperf- perform network throughput tests
• Server
iperf –s –p 8888
• Client
iperf –c –p 8888
http://disects.com/ Praveen Darshanam
Snort IDS Testing
• stick
• IDSwakeup
• IDS Informer
• mucus
• sneeze.pl
• fpg
• NOTE: These are pretty old tools, pre PCRE.
http://disects.com/ Praveen Darshanam
SNMP
• SNMP is used for remote management and monitoring of network
devices
snmpwalk –v 1 –c mysnmp 192.168.1.1 hrSWRunState
• Options
-v version
-c community string or user name
http://disects.com/ Praveen Darshanam
snmpwalk snapshot
http://disects.com/ Praveen Darshanam
Network Time Protocol
• NTP is used to synchronise clocks
• Ntpupdate collects time samples from Time Server
ntpupdate ntp_server_ip
• Ntptrace gets source of time to a particular server
ntptrace
• Ntpdc used to query NTP daemons current state
ntpdc –c sysinfo ip_address
• Ntpq monitor NTP daemons operations and performance
ntpq ip_address
http://disects.com/ Praveen Darshanam
DoS
• tcpjunk
• slowloris.pl
• thc-ssl-dos tool
• many fuzzers
• few Metasploit auxiliary/ modules
http://disects.com/ Praveen Darshanam
References
• http://www.backtrack-linux.org/
• http://tcpreplay.synfin.net/
• http://nmap.org/
• http://wiki.hping.org/
• http://www.secdev.org/projects/scapy/doc/usage.html
• http://www.gnu.org/software/wget/manual/wget.html
• http://www.ntop.org/
• http://cirt.net/nikto2-docs/
http://disects.com/ Praveen Darshanam
Questions ???!
Please do it for me 
http://disects.com Praveen Darshanam

Más contenido relacionado

La actualidad más candente

Steps to build and run oai
Steps to build and run oaiSteps to build and run oai
Steps to build and run oai
ssuser38b887
 
JavaOne 2012 - JVM JIT for Dummies
JavaOne 2012 - JVM JIT for DummiesJavaOne 2012 - JVM JIT for Dummies
JavaOne 2012 - JVM JIT for Dummies
Charles Nutter
 
Running hadoop on ubuntu linux
Running hadoop on ubuntu linuxRunning hadoop on ubuntu linux
Running hadoop on ubuntu linux
TRCK
 
Практический опыт профайлинга и оптимизации производительности Ruby-приложений
Практический опыт профайлинга и оптимизации производительности Ruby-приложенийПрактический опыт профайлинга и оптимизации производительности Ruby-приложений
Практический опыт профайлинга и оптимизации производительности Ruby-приложений
Olga Lavrentieva
 

La actualidad más candente (20)

Rpi python web
Rpi python webRpi python web
Rpi python web
 
Opendaylight app development
Opendaylight app developmentOpendaylight app development
Opendaylight app development
 
Hadoop Installation
Hadoop InstallationHadoop Installation
Hadoop Installation
 
XS Boston 2008 Debugging Xen
XS Boston 2008 Debugging XenXS Boston 2008 Debugging Xen
XS Boston 2008 Debugging Xen
 
Hadoop installation
Hadoop installationHadoop installation
Hadoop installation
 
Kernel Recipes 2015: Representing device-tree peripherals in ACPI
Kernel Recipes 2015: Representing device-tree peripherals in ACPIKernel Recipes 2015: Representing device-tree peripherals in ACPI
Kernel Recipes 2015: Representing device-tree peripherals in ACPI
 
Steps to build and run oai
Steps to build and run oaiSteps to build and run oai
Steps to build and run oai
 
Log
LogLog
Log
 
Hadoop installation
Hadoop installationHadoop installation
Hadoop installation
 
Linux 系統管理與安全:進階系統管理系統防駭與資訊安全
Linux 系統管理與安全:進階系統管理系統防駭與資訊安全Linux 系統管理與安全:進階系統管理系統防駭與資訊安全
Linux 系統管理與安全:進階系統管理系統防駭與資訊安全
 
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation JapaneseXS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
 
Linux 系統管理與安全:系統防駭與資訊安全
Linux 系統管理與安全:系統防駭與資訊安全Linux 系統管理與安全:系統防駭與資訊安全
Linux 系統管理與安全:系統防駭與資訊安全
 
AMS Node Meetup December presentation Phusion Passenger
AMS Node Meetup December presentation Phusion PassengerAMS Node Meetup December presentation Phusion Passenger
AMS Node Meetup December presentation Phusion Passenger
 
JavaOne 2012 - JVM JIT for Dummies
JavaOne 2012 - JVM JIT for DummiesJavaOne 2012 - JVM JIT for Dummies
JavaOne 2012 - JVM JIT for Dummies
 
Linux 系統管理與安全:基本 Linux 系統知識
Linux 系統管理與安全:基本 Linux 系統知識Linux 系統管理與安全:基本 Linux 系統知識
Linux 系統管理與安全:基本 Linux 系統知識
 
Running hadoop on ubuntu linux
Running hadoop on ubuntu linuxRunning hadoop on ubuntu linux
Running hadoop on ubuntu linux
 
DiUS Computing Lca Rails Final
DiUS  Computing Lca Rails FinalDiUS  Computing Lca Rails Final
DiUS Computing Lca Rails Final
 
php & performance
 php & performance php & performance
php & performance
 
Практический опыт профайлинга и оптимизации производительности Ruby-приложений
Практический опыт профайлинга и оптимизации производительности Ruby-приложенийПрактический опыт профайлинга и оптимизации производительности Ruby-приложений
Практический опыт профайлинга и оптимизации производительности Ruby-приложений
 
True stories on the analysis of network activity using Python
True stories on the analysis of network activity using PythonTrue stories on the analysis of network activity using Python
True stories on the analysis of network activity using Python
 

Similar a Network Security Testing Tools

Building an Automated Behavioral Malware Analysis Environment using Free and ...
Building an Automated Behavioral Malware Analysis Environment using Free and ...Building an Automated Behavioral Malware Analysis Environment using Free and ...
Building an Automated Behavioral Malware Analysis Environment using Free and ...
Jim Clausing
 
Simplest-Ownage-Human-Observed… - Routers
 Simplest-Ownage-Human-Observed… - Routers Simplest-Ownage-Human-Observed… - Routers
Simplest-Ownage-Human-Observed… - Routers
Logicaltrust pl
 
Filip palian mateuszkocielski. simplest ownage human observed… routers
Filip palian mateuszkocielski. simplest ownage human observed… routersFilip palian mateuszkocielski. simplest ownage human observed… routers
Filip palian mateuszkocielski. simplest ownage human observed… routers
Yury Chemerkin
 

Similar a Network Security Testing Tools (20)

How to convert your Linux box into Security Gateway - Part 1
How to convert your Linux box into Security Gateway - Part 1How to convert your Linux box into Security Gateway - Part 1
How to convert your Linux box into Security Gateway - Part 1
 
Penetration Testing Boot CAMP
Penetration Testing Boot CAMPPenetration Testing Boot CAMP
Penetration Testing Boot CAMP
 
Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018
Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018
Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018
 
Debug generic process
Debug generic processDebug generic process
Debug generic process
 
Linux Performance Tools 2014
Linux Performance Tools 2014Linux Performance Tools 2014
Linux Performance Tools 2014
 
A22 Introduction to DTrace by Kyle Hailey
A22 Introduction to DTrace by Kyle HaileyA22 Introduction to DTrace by Kyle Hailey
A22 Introduction to DTrace by Kyle Hailey
 
Threat hunting on the wire
Threat hunting on the wireThreat hunting on the wire
Threat hunting on the wire
 
Building an Automated Behavioral Malware Analysis Environment using Free and ...
Building an Automated Behavioral Malware Analysis Environment using Free and ...Building an Automated Behavioral Malware Analysis Environment using Free and ...
Building an Automated Behavioral Malware Analysis Environment using Free and ...
 
Ngrep commands
Ngrep commandsNgrep commands
Ngrep commands
 
Simplest-Ownage-Human-Observed… - Routers
 Simplest-Ownage-Human-Observed… - Routers Simplest-Ownage-Human-Observed… - Routers
Simplest-Ownage-Human-Observed… - Routers
 
Filip palian mateuszkocielski. simplest ownage human observed… routers
Filip palian mateuszkocielski. simplest ownage human observed… routersFilip palian mateuszkocielski. simplest ownage human observed… routers
Filip palian mateuszkocielski. simplest ownage human observed… routers
 
High Availability in 37 Easy Steps
High Availability in 37 Easy StepsHigh Availability in 37 Easy Steps
High Availability in 37 Easy Steps
 
Salting new ground one man ops from scratch
Salting new ground   one man ops from scratchSalting new ground   one man ops from scratch
Salting new ground one man ops from scratch
 
Useful linux-commands
Useful linux-commandsUseful linux-commands
Useful linux-commands
 
Tcpdump
TcpdumpTcpdump
Tcpdump
 
How Many Ohs? (An Integration Guide to Apex & Triple-o)
How Many Ohs? (An Integration Guide to Apex & Triple-o)How Many Ohs? (An Integration Guide to Apex & Triple-o)
How Many Ohs? (An Integration Guide to Apex & Triple-o)
 
Venkat ns2
Venkat ns2Venkat ns2
Venkat ns2
 
PerfUG 3 - perfs système
PerfUG 3 - perfs systèmePerfUG 3 - perfs système
PerfUG 3 - perfs système
 
Dynamic Tracing of your AMP web site
Dynamic Tracing of your AMP web siteDynamic Tracing of your AMP web site
Dynamic Tracing of your AMP web site
 
Survey of Percona Toolkit
Survey of Percona ToolkitSurvey of Percona Toolkit
Survey of Percona Toolkit
 

Último

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Último (20)

Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 

Network Security Testing Tools

  • 1. Security Testing Tools - Networking Praveen Darshanam http://darshanams.blogspot.com
  • 2. for absolute beginners …. http://disects.com/ Praveen Darshanam
  • 3. Tools • Operating Systems – Kali/Backtrack, Fedora Security Spin, Knoppix • Packet Crafting – hping, ngrep, sendip, scapy • Packet Replay – tcpreplay, tcpreplay-edit, tcpdump • Scanning – nmap, nc, metasploit, nessus • Fuzzing – metasploit, nikto, nessus, spike, radamsa, webfuzz • Stats – dstat, ifstat, iftop, ntop • Web – wget, curl, ab • Debugging – ping, netstat, tracert, ngrep • Benchmarking – ab, iperf, netperf http://disects.com/ Praveen Darshanam
  • 4. Command Help • man command_name • man ps • man hping • command_name –help or • command_name –h • dig –h • nc --help • info command_name • info nmap http://disects.com/ Praveen Darshanam
  • 5. Backtrack • Operating System for Security Researchers, Penetration Testers etc • Plethora of Tools • Fuzzers, DoS Tools, Scanners, Exploits etc. http://www.backtrack-linux.org/ http://disects.com/ Praveen Darshanam
  • 6. nmap • Port Scanning • OS fingerprinting • Version guessing • nmap [Scan Type(s)] options target_ip/domain • Useful options -sN/sF/sX: TCP Null, FIN, and Xmas scans --scanflags <flags>: Customize TCP scan flags -sV:Probe open ports to determine service/version info -O: Enable OS detection http://disects.com/ Praveen Darshanam
  • 8. ngrep grep patterns from pcap or live stream • ngrep is to pcap what grep is to normal files • Sniffer mode ngrep –d any ‘HTTP/1.1 200 OK’ port 80 ngrep –d eth0 –i ‘user|pass’ port 21 • Pcap pattern match – regex pattern + BPF filter ngrep -t ‘pattern’ –I pcap ngrep –tx –X ‘0xhex pattern’ –I pcap • Grep’ing, one packet at a time http://disects.com/ Praveen Darshanam
  • 10. hping • Packet crafting • Port Scanning • Tcl scripting engine • Ars Packet Description(APD), string representation of TCP/IP packets • hping –S 192.168.1.102 –p 80,21 –flood • hping3>hping send {ip(ihl=0x5,ver=0x4,tos=0x00,totlen=348,id=29974,fragoff=0,m f=0,df=1,rf=0,ttl=64,proto=6,cksum=0x6a40,saddr=192.168.1.10 2,daddr=192.168.1.101)+tcp(sport=5555,dport=6666,seq=3879420 856,ack=3264306705,x2=0x0,off=5,flags=pa,win=18760,cksum=0xc 4a2,urp=0)+data(str=You are Hacked!!!)} http://disects.com/ Praveen Darshanam
  • 12. nikto • Web Server Scanner for known Vulnerabilities • Options -dbcheck Check database and other key filesfor syntax errors -evasion Encoding technique (premature URL’s,long strings, tabs, fake parameters) -o output format (html, xml, csv) #nikto -o htm -host 192.168.0.127 http://disects.com/ Praveen Darshanam
  • 14. ethtool view and change NIC settings • View settings – ethtool eth0 – ethtool –i eth0 – ethtool –k eth0 – ethtool –p eth0 • Change settings – Speed; ethtool –s eth0 speed 100 – Duplex ethtool –s eth0 duplex full – TSO,GSO,checksum ethtool -K eth0 tso off gso off tx off http://disects.com/ Praveen Darshanam
  • 15. ping • Ping • Used for trouble shooting connectivity • Uses ICMP protocol • Based on raw sockets • Uses different types, codes based on error • Ping of death, pretty famous • Options -f fast ping -s data size -c number of packets to send #ping –f –s 65000 192.168.1.102 http://disects.com/ Praveen Darshanam
  • 16. netstat • netstat -p display the PID and program name of the process owning a socket -l displays the listening sockets -t display TCP socket -u display UDP socket -c continuous display --unix unix domain socket Linux netstat –ant |grep 22 Windows netstat -an -p tcp | find "135" http://disects.com/ Praveen Darshanam
  • 17. ab • Apache HTTP server benchmarking tool • Part of apache2-utils • Options -n Number of requests to perform -c Number of multiple requests to make -k Use HTTP KeepAlive feature #ab –n 1000 –c 50 -k http://disects.com/ Praveen Darshanam
  • 18. netcat • Open and Connect to TCP/UDP Ports • File Transfer • Port Scanning • Server nc –l 4444 • Client nc 192.168.1.102 80 • Port Scanning nc -z 192.168.1.102 1-1023 http://disects.com/ Praveen Darshanam
  • 19. metasploit • Penetration testing tool • Exploit Framework use use an exploit set set a variable value info infomation of PAYLOAD/Exploit PAYLOAD Shellcode to select RHOST target/victim host LPORT attackers TCP/UDP port exploit/run launch exploit http://disects.com/ Praveen Darshanam
  • 21. metasploit launching exploit snapshot http://disects.com/ Praveen Darshanam
  • 23. tcpdump, tcpreplay, tcpreplay-edit, tomahawk • Tcpdump • Captures/Sniffs Packets on an Interface tcpdump –i eth0 –xX –s0 –w capture.pcap • Tomahawk • replayed using single machine with two interfaces • Tcpreplay • Replays packet captures tcpreplay -K –C –i eth1 –M 400.00 capture.pcap • tcpreplay-edit • Similar to ‘tcpreplay’ with an option to edit the capture http://disects.com/ Praveen Darshanam
  • 25. tcpreplay-edit (commands) • Command1 (refer above image) tcpreplay-edit –C –M 400.00 –l 100000 –enet- dmac=00:13:D3:A7:00:42,14:D6:4D:14:BB:BB –s 0.0.0.0/0:10.0.0.5/32 –d 0.0.0.0/0:10.0.0.6/32 –I eth1 *.pcap • Command2 (refer above image) tcpreplay-edit –C –M 400.00 –l 100000 –enet- dmac=14:D6:4D:14:BB:BB, 00:13:D3:A7:00:42 –s 0.0.0.0/0:10.0.0.6/32 –d 0.0.0.0/0:10.0.0.5/32 –I eth0 *.pcap http://disects.com/ Praveen Darshanam
  • 26. netperf • netperf - network performance benchmark • Server netserver • Client netperf –H 192.168.1.102 http://disects.com/ Praveen Darshanam
  • 27. iperf • iperf- perform network throughput tests • Server iperf –s –p 8888 • Client iperf –c –p 8888 http://disects.com/ Praveen Darshanam
  • 28. Snort IDS Testing • stick • IDSwakeup • IDS Informer • mucus • sneeze.pl • fpg • NOTE: These are pretty old tools, pre PCRE. http://disects.com/ Praveen Darshanam
  • 29. SNMP • SNMP is used for remote management and monitoring of network devices snmpwalk –v 1 –c mysnmp 192.168.1.1 hrSWRunState • Options -v version -c community string or user name http://disects.com/ Praveen Darshanam
  • 31. Network Time Protocol • NTP is used to synchronise clocks • Ntpupdate collects time samples from Time Server ntpupdate ntp_server_ip • Ntptrace gets source of time to a particular server ntptrace • Ntpdc used to query NTP daemons current state ntpdc –c sysinfo ip_address • Ntpq monitor NTP daemons operations and performance ntpq ip_address http://disects.com/ Praveen Darshanam
  • 32. DoS • tcpjunk • slowloris.pl • thc-ssl-dos tool • many fuzzers • few Metasploit auxiliary/ modules http://disects.com/ Praveen Darshanam
  • 33. References • http://www.backtrack-linux.org/ • http://tcpreplay.synfin.net/ • http://nmap.org/ • http://wiki.hping.org/ • http://www.secdev.org/projects/scapy/doc/usage.html • http://www.gnu.org/software/wget/manual/wget.html • http://www.ntop.org/ • http://cirt.net/nikto2-docs/ http://disects.com/ Praveen Darshanam
  • 34. Questions ???! Please do it for me  http://disects.com Praveen Darshanam