Skip to content

Commit

Permalink
compatible with IronPython
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaBouali committed Dec 3, 2023
1 parent 8c41032 commit 3e3e2d9
Show file tree
Hide file tree
Showing 6 changed files with 521 additions and 496 deletions.
982 changes: 493 additions & 489 deletions bane/common/payloads.py

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion bane/scanners/botnet/botnet_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def interact(host,port,read_timeout=3,timeout=3,tor=False,xor_key=None):
data=Botnet_Master.read_data(s,timeout=read_timeout,real_timeout=timeout,xor_key=xor_key)
username=user_input(data)
data=Botnet_Master.send_data(username,s,timeout=read_timeout,real_timeout=timeout,xor_key=xor_key)
password=pwinput.pwinput(prompt=data, mask='*')
try:
password=pwinput.pwinput(prompt=data, mask='*')
except:
password=input(data)
data=Botnet_Master.send_data(password,s,timeout=read_timeout,real_timeout=timeout,xor_key=xor_key)
while True:
cmd=user_input(data+' ')
Expand Down
6 changes: 5 additions & 1 deletion bane/scanners/botnet/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import flask,os
import socket,os,sys,pwinput
import socket,os,sys
try:
import pwinput
except:
pwinput=input
from ...utils.socket_connection import *
from ...cryptographers.xor import XOR
import os, sys, socket, random, time, threading, xtelnet
Expand Down
13 changes: 12 additions & 1 deletion bane/scanners/vulnerabilities/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
import subprocess, os, xtelnet, sys, cgi, re, json,platform
from colorama import Fore, Back, Style
try:
from colorama import Fore, Back, Style
except:
class Fore:
pass

class Back:
pass

class Style:
pass

from ...utils.proxer import *
from ...utils.handle_files import *

Expand Down
4 changes: 2 additions & 2 deletions bane/utils/pager/rand_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ def get_random_user_agent(browser_header=None,system_info=None,system_platform=N
return ua_string

@staticmethod
def update_user_agents_list():
def update_user_agents_list(max_user_agents=20000):
l=[]
while True:
a=RANDOM_GENERATOR.get_random_user_agent()
if a not in Common_Variables.user_agents_list:
l.append(a)
if len(l)==20000:
if len(l)==max_user_agents:
break
Common_Variables.user_agents_list=l
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,14 @@
os.system('pip install '+' '.join(req))
else:
os.system('pip3 install '+' '.join(req))"""

if sys.version_info<(3,5):
req.remove('colorama')
req.remove('jsbeautifier')
req.remove('pwinput')

setuptools.setup(
name="bane",
version="5.1.5",
version="5.1.6",
author="AlaBouali",
author_email="[email protected]",
description='This Python library offers a comprehensive set of tools for various cybersecurity and networking tasks. Its functionalities encompass diverse capabilities such as bruteforce attacks, cryptographic methods, DDoS attacks, information gathering, botnet creation and management, CMS vulnerability scanning, network discovery, vulnerability scanning, useful modules for common tasks, web page analyzers, and proxy utilities making it a powerful toolkit for cybersecurity professionals and network administrators.',
Expand Down

0 comments on commit 3e3e2d9

Please sign in to comment.