Skip to content

Instantly share code, notes, and snippets.

View bugbaba's full-sized avatar
🔥

Noman | نعمان | नोमान bugbaba

🔥
View GitHub Profile
@bugbaba
bugbaba / misson.js
Created February 25, 2022 11:07
my synack missions bot
/*
My Mission claiming bot
*/
function claimMission(missionJSON) {
for (var i=0; i < missionJSON.length;i++) {
campaign = missionJSON[i]['campaign']['title']
campaignID = missionJSON[i]['campaign']['id']
orgID = missionJSON[i]['organization']['id']
@bugbaba
bugbaba / securitytrails.js
Last active October 28, 2020 12:13
JavaScript snippet to extract the domains from the table
// :__:
for(var i=0; i < (document.getElementsByTagName("table")[0].rows.length);i++){
console.log(document.getElementsByTagName("table")[0].rows[i].cells.item(0).textContent)
}
@bugbaba
bugbaba / port.sh
Created July 21, 2018 19:43
scans ip addresses with masscan and then scans with nmap those open ports
#!/bin/bash
# This scipt will run a full portscans on the given list ips and then run nmap on open ports
# usage: ./port.sh ips.txt
echo "[-] Starting PortScan ~~~~~~~~~~"
for ip in $(cat $1); do
~/masscan/bin/masscan -p1-65535 $ip --max-rate 1000 -oG $ip-portscan
ports=$(cat ./$ip-portscan | grep open | awk '{print $5}' | cut -d '/' -f1 | tr "\n" ',')