Skip to content

🐢 Lightweight scripts for quick checks in web security assessments

License

Notifications You must be signed in to change notification settings

dekadentno/beagle.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

beagle.js 🐢

beagle.js is a collection of lightweight JavaScript functions designed for quick and simple inspection of web pages. Each function is designed to be copy-pasted directly into a browser's console, giving instant insights into various aspects of the loaded webpage.

Please be aware that the provided functions are designed for quick insights rather than comprehensive analysis. They may not account for every edge case or intricacy of web page structure.

πŸš€ Getting Started

  1. Navigate to the web page you wish to inspect.
  2. Open your browser's developer tools.
  3. Navigate to the 'Console' tab.
  4. Copy the contents of beagle.js file from this repository and paste it into the console. Press Enter. Invoke it with Beagle.functionName();

πŸ“œ Scripts

findInjectionPoints()

Scours the webpage for common points that might be susceptible to injections such as input fields, buttons, and more. Returns a table-format report of all elements discovered with their respective properties.

findInjectionPoints

findLinks()

Identifies all anchor () tags on the webpage, categorizing them based on their URLs. Returns a table-format report detailing each link's URL, anchor text, and a flag indicating if it's external.

findLinks

extractEmails()

Extracts email addresses found within the text content of the webpage. Utilizes a regular expression to match email patterns and returns a unique list of emails found.

findLinks

findHtmlComments()

Searches the webpage for HTML comments and logs them in the console. Uses a NodeIterator to traverse the DOM and collect comments.

findLinks

startAll()

Runs all the above methods (findLinks, findInjectionPoints, extractEmails, and findHtmlComments) sequentially. This method provides a comprehensive analysis of the webpage by aggregating the results of all individual methods.

πŸ™‹ Contribution

If you have suggestions for additional scripts or improvements to existing ones, please open an issue or submit a pull request!

πŸ“„ License

This project is open source and available under the MIT License.

About

🐢 Lightweight scripts for quick checks in web security assessments

Resources

License

Stars

Watchers

Forks