The program uses the following Python libraries:
requests
: Used for making HTTP requests to web pages.beautifulsoup4
: Used for parsing HTML and XML documents.urllib
: Used for parsing URLs and joining them together to create absolute URLs.os
: Used for interacting with the file system, including creating and deleting directories and files.shutil
: Used for deleting directories and their contents recursively.
C:\path\jssniffer>python jssniffer.py
Enter a URL to crawl: http://www.yourwebsite.com
..............................
Found 4 unique JavaScript files on www.yourwebsite.com:
- /aJavascriptFile1.js
- /aJavascriptFile2.js
- /aJavascriptFile3.js
- /aJavascriptFile4.js
File aJavascriptFile1.js contains keyword 'token'
File aJavascriptFile4.js contains keyword 'token'
Are you sure you want to delete C:\path\jssniffer\jssniffer\js_files? (y/n): N
C:\path\jssniffer was not deleted.