Cookie Consent by Free Privacy Policy Generator ๐Ÿ“Œ OSIPs - Gathers All Valid IP Addresses From All Text Files From A Directory, And Checks Them Against Whois Database, TOR Relays And Location

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š OSIPs - Gathers All Valid IP Addresses From All Text Files From A Directory, And Checks Them Against Whois Database, TOR Relays And Location


๐Ÿ’ก Newskategorie: IT Security Nachrichten
๐Ÿ”— Quelle: kitploit.com


This script scans every file from a given folder recursively, extracts every IPv4 and IPv6 address, filters out the public IP addresses and then queries these IPs against TOR relays, WhoIs service and Location service. It outputs 4 files: a CSV file and a JSON file with all details of the IP addresses, a CSV file containing an index of every found IP address and a KML file with all the locations gathered.


Features

  • Parses any number of files in a single run
  • Can also be run for a single input file
  • Extracts all unique valid IPv4 and IPv6 addresses (correctly comparing two addresses, even if they are written differently)
  • Collects publicly available Who Is information for all public IP addresses
  • Queries all public IP addresses against TOR relays
  • Collects geographical location information for all public IP addresses
  • Can be run with command line parameters in non-interactive mode for easy integration in other scripts
  • Can be run without parameters and the input values can be provided interactively
  • Allows user to select what steps to perform or exclude
  • Verbosely outputs information to console at every step that it performs
  • Exports all IP addresses details in both a CSV file and a JSON file
  • Exports a KML file that can be easily loaded on top of a map
  • Keeps an index of all found IP addresses in a separate CSV file for easy traceback

Pre-requisites:

Python 3.9.x

Installation

To install dependencies, run:

pip install -r requirements.txt

Compile to executable

pip install pyinstaller

pyinstaller --onefile osips.py

Usage

python osips.py [-h] [-F INPUTFOLDER] [-f INPUTFILE] [-p INPUTFILESPATTERN] [-o OUTPUTFILESNAME] [-t {y,n,Y,N}] [-w {y,n,Y,N}] [-l {y,n,Y,N}] [-locationEndpoint LOCATIONENDPOINT]

Interactively

python osips.py

Non-interactively

python osips.py --checkTor Y --checkWhoIs Y --checkLocations Y --inputFolder testFolder/ --inputFilesPattern * --outputFilesName test

Help

python osips.py -h

Options

  • -h, --help Show the help message and exit
  • -F INPUTFOLDER, --inputFolder INPUTFOLDER A folder containing files with IPs (log files, email files, text files etc). The IPs can be IPv4 and/or IPv6 and can be placed anywhere in the files. The script will parse every file in the folder and will scan for every IP
  • -f INPUTFILE, --inputFile INPUTFILE Use this option to scan only one file instead of a folder with files. The file can be any text file that contains IP addresses (log files, email files, text files etc.)
  • -p INPUTFILESPATTERN, --inputFilesPattern INPUTFILESPATTERN Enter the pattern to use for the files in the input folder. Example: * for all files, *.txt for text files.
  • -o OUTPUTFILESNAME, --outputFilesName OUTPUTFILESNAME The name for the output files, WITHOUT EXTENSION. 4 different files will be created with this name: a CSV file storing the IP details, an index file storing the IP indexes, a JSON file storing the details and a KML file storing the locations.
  • -t {y,n,Y,N}, --checkTor {y,n,Y,N} Specify if you want to check every public IP address against the TOR relays IP addresses
  • -w {y,n,Y,N}, --checkWhoIs {y,n,Y,N} Specify if you want to extract WhoIs information for every public IP address
  • -l {y,n,Y,N}, --checkLocations {y,n,Y,N} Specify if you want to geocode every public IP address and extract location info using https://reallyfreegeoip.org
  • -locationEndpoint LOCATIONENDPOINT Default REST endpoint for location is "https://reallyfreegeoip.org/json/". You can specify a diffrent end point, includding placeholder. The result must be in JSON and must include the following fields: country_name, region_code, region_name, city, zip_code, time_zone, latitude, longitude, metro_code

Remarks

  • The tool extracts IPv4 addresses only in dot decimal notation (xxx.xxx.xxx.xxx). It doesnโ€™t extract IPv4 addresses in decimal, octal or hexadecimal notation because of the high rate of false positives.
  • Depending on the number of public IP addresses found, querying the online services could take a long time. If you are dealing with a lot of IP addresses, it is recommended to first run the tool without querying any of the services and just to extract the IP addresses. After seeing the extraction result, you can calculate an estimate of the total run time of the tool if the services are queried, and eventually choose to query only one or two of the services.
  • TOR relays are checked at the moment of running the tool. Because these IPs are constantly changing, this information may not be very accurate. If a date can also be identified for an IP, then it should be checked against ExoneraTor at this address: https://metrics.torproject.org/exonerator.html
  • Who Is information as well as the location information is gathered live from publicly available services, so the IP addresses are sent to these services. There are downloadable databases that would allow you to collect this information locally, but these downloads are not free and would need constant updates. This tool is not built to work with local databases.
  • The default service used for location gathering is https://reallyfreegeoip.org. This is a free service with no limitations, but it may not be very accurate. You can change this service with another, by using the -locationEndpoint parameter of the script. You can provide another service that takes an IP address as a parameter and returns a JSON response. Use the as a placemark for the IP address location. Examples: https://ipapi.co//json, https://api.ipstack.com/?access_key=ACCESS_KEY, https://freeapi.robtex.com/ipquery/. Please note that some of these other REST endpoints may not return the required fields and thus will break the scriptโ€™s logic. In this case, the method named RequestInfoFromRestEndpoint should be modified accordingly.

Acknowledgements



...



๐Ÿ“Œ pyHAWK - Searches The Directory Of Choice For Interesting Files. Such As Database Files And Files With Passwords Stored On Them


๐Ÿ“ˆ 44.8 Punkte

๐Ÿ“Œ Techotronic all-in-one-favicon Plugin 4.6 on WordPress Apple-Text/GIF-Text/ICO-Text/PNG-Text/JPG-Text Persistent cross site scripting


๐Ÿ“ˆ 44.41 Punkte

๐Ÿ“Œ Rlaj Whois 1.0 whois.cgi Domain Name privilege escalation


๐Ÿ“ˆ 35.53 Punkte

๐Ÿ“Œ wp-whois-domain Plugin 1.0.0 on WordPress pages/func-whois.php cross site scripting


๐Ÿ“ˆ 35.53 Punkte

๐Ÿ“Œ PostGIS and Heroku Postgresโ€ฆ Location, Location, Location!


๐Ÿ“ˆ 32.58 Punkte

๐Ÿ“Œ TOR Router - A Tool That Allow You To Make TOR Your Default Gateway And Send All Internet Connections Under TOR


๐Ÿ“ˆ 32.48 Punkte

๐Ÿ“Œ This is node joke. Tor battles to fend off swarm of Bitcoin-stealing evil exit relays making up about 25% of outgoing capacity at its height


๐Ÿ“ˆ 32.29 Punkte

๐Ÿ“Œ Over 25% Of Tor Exit Relays Spied On Users' Dark Web Activities


๐Ÿ“ˆ 32.29 Punkte

๐Ÿ“Œ PayPal Closed Someone's Account for Running Tor Relays


๐Ÿ“ˆ 32.29 Punkte

๐Ÿ“Œ Tor Project removes relays because of for-profit, risky activity


๐Ÿ“ˆ 32.29 Punkte

๐Ÿ“Œ Tor Network Removes Risky Relays Associated With Cryptocurrency Scheme


๐Ÿ“ˆ 32.29 Punkte

๐Ÿ“Œ New Tor Security Updates Patch DoS Bug That Let Attackers Crash Relays, Clients


๐Ÿ“ˆ 32.29 Punkte

๐Ÿ“Œ New Tor Security Updates Patch DoS Bug That Let Attackers Crash Relays, Clients


๐Ÿ“ˆ 32.29 Punkte

๐Ÿ“Œ Tor Project is going to remove End-Of-Life relays from the network


๐Ÿ“ˆ 32.29 Punkte

๐Ÿ“Œ Tor to Reject End-of-Life Relays by Default


๐Ÿ“ˆ 32.29 Punkte

๐Ÿ“Œ Tor Project removed several relays associated with a suspicious cryptocurrency scheme


๐Ÿ“ˆ 32.29 Punkte

๐Ÿ“Œ Tor Project removed several relays associated with a suspicious cryptocurrency scheme


๐Ÿ“ˆ 32.29 Punkte

๐Ÿ“Œ Expert On Bitcoin Thieves Use Malicious Tor Relays To Hijack Traffic With SSL Stripping Attacks


๐Ÿ“ˆ 32.29 Punkte

๐Ÿ“Œ What Expert Says On Hackers exploited Tor exit relays to generate bitcoin


๐Ÿ“ˆ 32.29 Punkte

๐Ÿ“Œ Location, location, location... technologies under the microscope


๐Ÿ“ˆ 31.51 Punkte

๐Ÿ“Œ The data-management firmโ€™s customer database held names, email addresses, some ip addresses and more: a wealth of ammo for phishers.


๐Ÿ“ˆ 31.25 Punkte

๐Ÿ“Œ How Far Back Do Background Checks and Criminal History Checks Go?


๐Ÿ“ˆ 29.74 Punkte

๐Ÿ“Œ Tor Browser 9.0.7 addresses a flaw that could allow unmasking Tor users


๐Ÿ“ˆ 29.65 Punkte

๐Ÿ“Œ Malware again checks into Hyatt's hotels, again checks out months later with victims' credit cards


๐Ÿ“ˆ 28.67 Punkte

๐Ÿ“Œ Work-related Background Checks Vs Employment Background Checks


๐Ÿ“ˆ 28.67 Punkte

๐Ÿ“Œ A new version of the popular tor browser was released by the tor project, it is tor browser 8.5.1 for windows, mac, linux, and android.


๐Ÿ“ˆ 28.46 Punkte

๐Ÿ“Œ DataSurgeon - Quickly Extracts IP's, Email Addresses, Hashes, Files, Credit Cards, Social Secuirty Numbers And More From Text


๐Ÿ“ˆ 27.61 Punkte

๐Ÿ“Œ Everything About Tor: What is Tor? How Tor Works?


๐Ÿ“ˆ 27.39 Punkte

๐Ÿ“Œ AMBER AI: I found some api keys in js files ,huge leak of token addresses and huge amount of js files are not forbidden


๐Ÿ“ˆ 26.6 Punkte

๐Ÿ“Œ Extract IP Addresses From Text & HTML Files Software


๐Ÿ“ˆ 26.54 Punkte

๐Ÿ“Œ New Phishing Campaign Evades Security Checks With Hexadecimal IP Addresses


๐Ÿ“ˆ 25.73 Punkte











matomo