Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Networking/ping_bruteforce/python/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Ping IP Bruteforce (Linux only)
------
With this python script you can bruteforce for example the IP-address of a headless machine.
20 changes: 20 additions & 0 deletions Networking/ping_bruteforce/python/ping_bruteforce.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
"""
Created on Sun Oct 1 20:22 2017
@author: john2ksonn

!!!Linux only!!!
"""
import os

minVal = 0
maxVal = 225


ipAddressBeginning = "192.168.2." #ip address without the last number

for i in range(minVal, maxVal):
pingString = "ping -c 1 " + ipAddressBeginning + str(i) + "|grep '0%'"
print(ipAddressBeginning + str(i))
os.system(pingString)