Hi all I want make web pentesting tool using python I want this tool to get the content and request headers on the form or web, I want to make a simple and brute force bot then how can I get it?
I'm not familiar with Python, but in your case you can get the data by inspect element -> network -> header
tutorial : https://mkyong.com/computer-tips/how-to-view-http-headers-in-google-chrome/#:~:text=To%20view%20the%20request%20or,displayed%20on%20the% 20right%20panel
Maybe you can use urllib
I tried the sample code in Python, if an error occurs sorry, I didn't try it and run it
url = 'url.com'
'Content-Type': 'your result or inspect',
If you want make brute force tool, you need know about algorthm, make array to sett you value or you can use file handling for wordlist like read, append, write anything then you parse this data (wordlist) to url or target host
Change the http method in line 14, you can change in your case here list http method request https://rapidapi.com/blog/api-glossary/http-request-methods/
How i can use file handling in Python? For example I will take a 1.txt file that will input it in the target
Ummm, you need learn file handling or I/O file you can read doc Python https://docs.python.org/3/tutorial/inputoutput.html if you wan't read the file using "r" learn more about file handling https://www.w3schools.com/python/python_file_handling.asp
You can use open() this function for file handling
"r" - Read - Default value. Opens a file for reading, error if the file does not exist"a" - Append - Opens a file for appending, creates the file if it does not exist"w" - Write - Opens a file for writing, creates the file if it does not exist"x" - Create - Creates the specified file, returns an error if the file exists
"r" - Read - Default value. Opens a file for reading, error if the file does not exist
"a" - Append - Opens a file for appending, creates the file if it does not exist
"w" - Write - Opens a file for writing, creates the file if it does not exist
"x" - Create - Creates the specified file, returns an error if the file exists
Okkey try it, I will develop code from you
Ok, but sorry i dont know much about Python hehee CMIW
Ok no problem any here Pyhon programmer?
I want make portofolio
You can wait, i don't think so maybe
Oppss... No sponsors yet