1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
|
Network
========
bh_bin2ip
---------
Convert a binary string into network ipaddress.
.. note::
Usage
``bh_bin2ip`` binary string
.. code-block:: bash
$ bh_bin2ip 00001010.00001010.00000000.00000001
10.10.0.1
bh_hostcalc
-----------
Enter a network CIDR mask and know the amount of hosts
.. note::
Usage
``bh_hostcalc`` [ mask cidr ]
.. code-block:: bash
$ bh_hostcalc 24
256
$ bh_hostcalc 25
126
bh_ip2bin
---------
Convert network ipaddress into binary string.
.. note::
Usage
``bh_ip2bin`` [ ipaddress ]
.. code-block:: bash
$ bh_ip2bin 192.168.0.100
11000000.10101000.00000000.01100100
bh_myip
-------
This returns the external ipaddress of your network connection.
.. note::
Usage
``bh_myip``
.. code-block:: bash
$ bh_myip
200.251.1.1
bh_wgetr
--------
Recursive and continue getting a partially-downloaded "if exist" file started by a previous instance of wget with randomize time.
.. note::
Usage
``bh_wgetr`` [ url ]
.. code-block:: bash
$ bh_wgetr http://www.mentebinaria.com.br/artigos/0x1e/0x1e-maqengrevwin.html
www.mentebinaria.com.br/art 100%[==========================================>] 8.73K --.-KB/s in 0s
www.mentebinaria.com.br/rob 100%[==========================================>] 361 --.-KB/s in 0s
www.mentebinaria.com.br/art 100%[==========================================>] 66.18K 132KB/s in 0.5s
$ ls -1
www.mentebinaria.com.br
$ ls -1 www.mentebinaria.com.br/artigos/0x1e/
0x1e-maqengrevwin.html
desktop.png
bh_ipinfo
---------
Query ipinfo.io returns basic info about address.
.. note::
Usage
``bh_ipinfo`` [ ipaddress ]
.. code-block:: bash
$ $ bh_ipinfo 8.8.8.8
{
"ip": "8.8.8.8",
"hostname": "dns.google",
"anycast": true,
"city": "Mountain View",
"region": "California",
"country": "US",
"loc": "37.4056,-122.0775",
"org": "AS15169 Google LLC",
"postal": "94043",
"timezone": "America/Los_Angeles",
"readme": "https://ipinfo.io/missingauth"
}
bh_unshort
---------
With this function you have the possibility to unshort a URL see below a example.
.. note::
Usage
``bh_unshort`` [ URL string ]
.. code-block:: bash
$ bh_unshort http://goo.gl/l6MS
http://googleblog.blogspot.com/2009/12/making-urls-shorter-for-google-toolbar.html
bh_ipisblacklisted
---------
Search for occurrence of the ip address in some blacklist returning [T] if positive and [F] if it is opposite..
.. note::
Usage
``bh_ipblacklist`` [ ipaddress ]
.. code-block:: bash
$ bh_ipblacklist 77.xxx.xx.xx
== 77.xxx.xx.xx ==
[F] TALOS
[F] Malc0de
[F] Projecthoneypot.org
[F] blocklist.de
[T] Alienvault
[F] SANS-TOPSOURCE
#if ipaddress is not informed will be considered the outside
$ bh_ipblacklist
== 189.x.xxx.x ==
[F] TALOS
[F] Malc0de
[F] blocklist.de
[F] Alienvault
[T] SANS-TOPSOURCE
|