# Penetration Testing Step By Step | Complete Tutorial 

**URL:** <https://onehack.st/t/penetration-testing-step-by-step-complete-tutorial/102581>\
**Category:** Tutorials & Methods\
**Tags:** hacking\
**Created:** [August 23, 2020, 12:03pm UTC](https://onehack.st/t/penetration-testing-step-by-step-complete-tutorial/102581 "2020-08-23T12:03:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheStrength](https://onehack.st/user_avatar/onehack.st/thestrength/32/46753_2.png) [@TheStrength](https://onehack.st/u/TheStrength)\
**Post date:** [August 23, 2020, 12:03pm UTC](https://onehack.st/t/penetration-testing-step-by-step-complete-tutorial/102581/1 "2020-08-23T12:03:11Z")

</div>

![](https://betanews.com/wp-content/uploads/2020/02/Pen-Testing.jpg)

**Port Ranges**  
• Ports 0 to 1023 are Well-Known Ports.  
• Ports 1024 to 49151 are Registered Ports (often registered by a software developer to  
designate a particular port for their application)  
• Ports 49152 to 65535 are Public Ports.

**Traffic Analysis - Wireshark**  
Configure Name Resolution

1. Make a new profile
2. Make a “hosts” file with format “ip hostname”
3. Place that “hosts” file in the ~/.config/wireshark/configprofilename/ folder
4. open pcap file, select your configuration profile, and ensure “view\>\>name  
resolution\>\>resolve network/transport address names” is checked

**Configure Ports**

1. Go to “Edit\>\>preferences\>\>columns” and add src and dst ports to the display

**Figuring out what multi-cast goes too**

1. Fill out “hosts” and “services” file if you can
2. Click on various multi-cast products – generally the parameters will identify what the  
application is with a version or the company that made it.

**Query for Common Ports**  
• tcp.dstport \>= 0 and tcp.dstport \<= 10000 || tftp || dns

**Saving off filters to make capture smaller**

1. Apply a filter
2. Click “File\>\> Export Specified Packets” then save them to a file

**Search for Strings**  
• Edit \>\> find packet

**Extracting files**  
• file \>\> export objects

**Find Hashes**  
• net-creds.py file.pcap

**Changing Parameters in the Packets**

**Download:** [Penetration Testing.pdf](https://onehack.st/uploads/short-url/7IEJ7W45z7jqlUQAWwnPOaKRIle.pdf) (938.2 KB) (Tools referrence included in pdf)

**Enjoy!**
