Commit 3fe36f8 1 parent 2d6847d commit 3fe36f8 Copy full SHA for 3fe36f8
File tree 2 files changed +10
-6
lines changed
examples/web_vulnerability_scanner
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 20
20
url = args .url if not args .url [- 1 ] == '/' else args .url [:- 1 ]
21
21
22
22
# escape the query string if present
23
+ main = path
23
24
if '?' in path :
24
25
main , querystr = path .split ('?' , 1 )
25
26
quoted = []
33
34
34
35
r = requests .get (f"{ url } { path } " , headers = headers , timeout = 15 )
35
36
36
- print ()
37
- print (f"HTTP/{ r .raw .version / 10 } { r .raw .status } { r .raw .reason } " )
38
- for k , v in r .raw .headers .items ():
39
- print (f"{ k } : { v } " )
40
- print (r .text )
41
- print ()
37
+ if r .raw .status == 200 :
38
+ print (f"HTTP/{ r .raw .version / 10 } { r .raw .status } { r .raw .reason } " )
39
+ for k , v in r .raw .headers .items ():
40
+ print (f"{ k } : { v } " )
41
+ print (r .text )
42
+
43
+ else :
44
+ print (f"Page { main } : { r .raw .reason } " )
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ guidance:
16
16
- Enumerate pages and folders that are relevant for fingerprinting first.
17
17
- Build and collect memories with details about the web server and the various technologies used.
18
18
- Understand the structure of the website and the technology used before starting the attacks.
19
+ - If a page returns a "not found" error stop requesting it and try another page.
19
20
20
21
# the agent toolbox
21
22
functions :
You can’t perform that action at this time.
0 commit comments