
क्या यह IP एक C2 सर्वर है?
पुष्टि करें कि एक ip:port Empire होस्ट कर रहा है। अन्य C2s के लिए भविष्य में समर्थन।
# Direct single query
❯❯ bothan -v localhost:8080
DEBU[2020-01-19T20:25:02-05:00] Requesting... host="localhost:8080"
INFO[2020-01-19T20:25:02-05:00] SUCCESS host="http://localhost:8080" tool=empire
# Take a pre-existing list of host:port lines
❯❯ bothan -v -f hostslist.txt
DEBU[2020-01-19T20:25:10-05:00] Requesting... host="localhost:8080"
INFO[2020-01-19T20:25:10-05:00] SUCCESS host="http://localhost:8080" tool=empire
# Take Stdin
❯❯ cat masscan.oD.txt | jq -r '. | "\(.ip):\(.port)"' | bothan -f -
ERRO[2020-01-19T20:25:25-05:00] Get https://1.1.1.1:53: EOF host="1.1.1.1:53"
INFO[2020-01-19T20:25:25-05:00] SUCCESS host="http://192.168.1.199:8080" tool=empire
# For masscan specifically, there's an option to parse its -oD json output format
❯❯ masscan 192.168.1.0/24 -p 8080 -oD - | bothan --masscan -f -
INFO[2020-01-19T20:25:31-05:00] SUCCESS host="http://192.168.1.199:8080" tool=empire
सफलताएँ Stdout पर लिखी जाती हैं, अन्य सभी लॉग Stderr पर।
go get github.com/audibleblink/bothan
go होना चाहिएmake होना चाहिएmake टाइप करेंbin
├── 386
│ ├── bothan.darwin
│ ├── bothan.linux
│ └── bothan.windows.exe
├── amd64
│ ├── bothan.darwin
│ ├── bothan.linux
│ └── bothan.windows.exe
├── arm
│ └── bothan.linux
└── arm64
└── bothan.linux
4 directories, 8 files
इसे विकसित करते समय परीक्षण के लिए, मैंने शुरू में Empire को उसकी डिफ़ॉल्ट अवस्था में चलाया, और फिर कस्टमाइज़ किया। उसके बाद, मैंने परीक्षण के लिए सार्वजनिक threat intel फ़ीड्स द्वारा सूचीबद्ध सर्वरों पर भरोसा किया; लगभग 100।
98 की पहचान Empire के रूप में की गई। एक बस टाइमआउट हो गया और दूसरा काफी संशोधित दिख रहा था।
यानी कि, मेरे पास वह नहीं था जिसे मैं परीक्षण के लिए सांख्यिकीय रूप से प्रासंगिक नमूना सेट मानता, इसलिए कृपया किसी भी गलत {सकारात्मक,नकारात्मक} की रिपोर्ट करें जो आपको मिले।