44##### Toolkit for hacking enthusiasts using Python.
55hacklib is a Python module for hacking enthusiasts interested in network security. It is currently in active development.
66
7- -
7+
88#### Installation
99To get hacklib, simply run in command line:
1010``` console
1111pip install hacklib
1212```
1313
14- -
14+
1515hacklib also has a user interface. To use it, you can do one of the following:
1616
1717Download hacklib.py and run in console:
@@ -37,7 +37,7 @@ Or if you got it using pip:
3737import hacklib
3838hacklib.userInterface()
3939```
40- -
40+
4141
4242#### Usage Examples
4343Reverse shell backdooring (Currently only for Macs):
@@ -64,7 +64,7 @@ bash$ whoami # Type a command
6464leon
6565bash$ # Nice!
6666```
67- -
67+
6868Universal login client for almost all HTTP/HTTPS form-based logins and HTTP Basic Authentication logins:
6969
7070``` python
@@ -97,7 +97,7 @@ for p in passwords:
9797 print ' Password is' , p
9898 break
9999```
100- -
100+
101101Port Scanning:
102102``` python
103103from hacklib import *
@@ -139,7 +139,7 @@ Cookie: C107351277=BBBBBBBBBBBBBBBBBBBB\x00''' + '\r\n\r\n'
139139# The cookie replaced the firmware's memory allocation for web authentication with a null bye.
140140# The router's admin page is now fully accessible from any web browser.
141141```
142- -
142+
143143FTP authentication:
144144``` python
145145import hacklib
149149except :
150150 print ' Login failed.'
151151```
152- -
152+
153153Socks4/5 proxy scraping and tunneling
154154``` python
155155>> > import hacklib
@@ -171,7 +171,7 @@ u'KE'
171171# To filter proxies by country and type:
172172# proxylist = hacklib.getProxies(country_filter = ('RU', 'CA', 'SE'), proxy_type='Socks5')
173173```
174- -
174+
175175Word Mangling:
176176
177177``` python
@@ -198,7 +198,6 @@ Test1990
198198Test2016
1991992016Test
200200```
201- -
202201
203202Pattern Create:
204203
@@ -214,7 +213,6 @@ Output:
214213```
215214Aa0Aa1Aa2Aa3Aa4Aa5Aa6Aa7Aa8Aa9Ab0Ab1Ab2Ab3Ab4Ab5Ab6Ab7Ab8Ab9Ac0Ac1Ac2Ac3Ac4Ac5Ac6Ac7Ac8Ac9Ad0Ad1Ad2A
216215```
217- -
218216
219217Pattern Offset:
220218
@@ -230,13 +228,10 @@ Output:
230228``` python
231229[+ ] Offset: 50
232230```
233- -
231+
234232#### Dependencies
235233Not all classes have external dependencies, but just in case you can do the following:
236234``` python
237235hacklib.installDependencies()
238236```
239237
240- -
241- Note: hacklib is in active development. Expect crucial/major updates frequently. Always update your version of hacklib via pip when you get the chance.
242-
0 commit comments