Skip to content
Simple functions to add into .bashrc to convert Ip address into binary, hexadecimal, decimal, octal formats and viceversa
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
ipconverter
ipconverter.png

README.md

ipconverter

Simple functions to add into .bashrc to convert IP address into binary, hexadecimal, decimal, octal formats and viceversa

Setup

You can download the file (ipconverter) that has functions directly from above or if you're a linux geek and want to download the file from terminal only,

 wget https://raw.githubusercontent.com/bug-hunter-karna/ipconverter/master/ipconverter 

Append the functions from ipconverter to ~/.bashrc or ~/.bash_profile

 cat ipconverter >> ~/.bashrc 

Load the ~/.bashrc file

 source ~/.bashrc 

Usage

IP to (Hexadecimal + Decimal + Octal + Binary)

 ip2all 127.0.0.1 

Hexadecimal to IP

 hex2ip 7F000001 

Decimal to IP

 dec2ip 2130706433 

Octal to IP

 oct2ip 017700000001 

Binary to IP

 bin2ip 1111111000000000000000000000001 

Screenshot of Usage

Thank you :)

I just wanted to make it easier to convert IP address format rather than going to different websites for conversion. These formats (decimal, octal, hexadecimal etc) can be used to bypass blacklisted IP addresses while trying SSRFs.

Feedbacks are welcome.

You can contact me on @karna__1

Happy hacking! :)

You can’t perform that action at this time.