MCPcopy
hub / github.com/Z4nzu/hackingtool / dirb

Method dirb

hackingtool.py:1260–1277  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1258 functions_webAttack[choice]()
1259
1260 def dirb(self):
1261 self.clear_scr()
1262 os.system("echo \"DIRB is a Web Content Scanner. It looks for existing (and/or hidden) Web Objects.\nIt basically works by launching a dictionary based attack against \n a web server and analizing the response.\n\t [!]https://gitlab.com/kalilinux/packages/dirb \" | boxes -d boy | lolcat")
1263 choice = input("[1]Install [2]Run [99]Back >> ")
1264
1265 self.check_input(choice, self.dirb, ['1', '2', '99'])
1266
1267 if choice == "1":
1268 os.system("sudo git clone https://gitlab.com/kalilinux/packages/dirb.git")
1269 os.system("cd dirb;sudo ./configure;make")
1270 self.dirb()
1271
1272 if choice == "2":
1273 uinput = input("Enter Url >> ")
1274 os.system("sudo dirb {0}".format(uinput))
1275
1276 if choice == "99":
1277 self.webAttack()
1278
1279 def web2attack(self):
1280 self.clear_scr()

Callers

nothing calls this directly

Calls 3

clear_scrMethod · 0.95
check_inputMethod · 0.95
webAttackMethod · 0.95

Tested by

no test coverage detected