Skip to content

Commit

Permalink
enable import from directory without installation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaBouali committed Nov 5, 2023
1 parent 68594d2 commit cab57e7
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion bane/bruteforce/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
from ..scanners.cms.wp import WordPress_Scanner,Vulnerability_Scanner_Utilities
from ..cryptographers.hasher import *
from ..utils.pager import *
from bane.utils import *
from ..utils import *


12 changes: 6 additions & 6 deletions bane/ddos/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import requests, socks, os, sys, urllib, socket, random, time, threading, ssl
import urllib3,json
from collections import OrderedDict
from bane.utils.socket_connection import *
from ..utils.socket_connection import *

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
# import the dependencies for each python version
Expand Down Expand Up @@ -29,11 +29,11 @@
conf.ipv6_enabled = False
from kamene.all import *
from struct import *
from bane.utils.pager.rand_generator import *
from bane.common.payloads import *
from bane.utils.handle_files import *
from bane.utils.proxer import *
from bane.utils.pager import *
from ..utils.pager.rand_generator import *
from ..common.payloads import *
from ..utils.handle_files import *
from ..utils.proxer import *
from ..utils.pager import *
termux=False
adr=False

Expand Down
4 changes: 2 additions & 2 deletions bane/gather_info/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import requests, urllib, socket, random, time, re, threading, sys, json, os, xtelnet
import bs4
from bs4 import BeautifulSoup
from bane.common.payloads import *
from ..common.payloads import *
import tldextract
try:
if sys.version_info < (3, 0):
Expand All @@ -17,7 +17,7 @@
except:
pass

from bane.utils.extrafun import *
from ..utils.extrafun import *
if os.path.isdir("/data/data/com.termux/") == False:
import dns.resolver

Expand Down
16 changes: 8 additions & 8 deletions bane/scanners/botnet/utils.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import flask,os
import socket,os,sys,pwinput
from bane.utils.socket_connection import *
from bane.cryptographers.xor import XOR
from ...utils.socket_connection import *
from ...cryptographers.xor import XOR
import os, sys, socket, random, time, threading, xtelnet
from bane.common.payloads import *
from bane.scanners.vulnerabilities.adb_exploit import *
from ...common.payloads import *
from ...scanners.vulnerabilities.adb_exploit import *

from bane.bruteforce.hydra import *
from bane.utils.pager.rand_generator import *
from bane.utils.handle_files import *
from ...bruteforce.hydra import *
from ...utils.pager.rand_generator import *
from ...utils.handle_files import *

import socket,sys,os,time
import threading
from bane.cryptographers.xor import XOR
from ...cryptographers.xor import XOR

if sys.version_info < (3, 0):
user_input=raw_input
Expand Down
10 changes: 5 additions & 5 deletions bane/scanners/cms/utils.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import requests, random, json, sys,socket
import urllib3,time
from bane.scanners.vulnerabilities.vulns import Vulners_Search_Scanner,Mixed_Content_Scanner,ClickJacking_Scanner,Vulnerability_Scanner_Utilities
from bane.gather_info.info_s import *
from ...scanners.vulnerabilities.vulns import Vulners_Search_Scanner,Mixed_Content_Scanner,ClickJacking_Scanner,Vulnerability_Scanner_Utilities
from ...gather_info.info_s import *

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
from bane.common.payloads import *
from ...common.payloads import *

if sys.version_info < (3, 0):
from urlparse import urlparse
else:
from urllib.parse import urlparse

from bs4 import BeautifulSoup
from bane.utils.proxer import *
from bane.gather_info.ips import *
from ...utils.proxer import *
from ...gather_info.ips import *
16 changes: 8 additions & 8 deletions bane/scanners/vulnerabilities/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import subprocess, os, xtelnet, sys, cgi, re, json,platform
from colorama import Fore, Back, Style
from bane.utils.proxer import *
from bane.utils.handle_files import *
from ...utils.proxer import *
from ...utils.handle_files import *

if platform.system()=='Java':
Fore.WHITE = ""
Expand Down Expand Up @@ -37,12 +37,12 @@
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
import bs4,socks
from bs4 import BeautifulSoup
from bane.common.payloads import *
from bane.utils.pager import *
from bane.utils.js_fuck import js_fuck
from bane.utils.handle_files import *
from bane.gather_info.info_s import *
from bane.gather_info.ips import *
from ...common.payloads import *
from ...utils.pager import *
from ...utils.js_fuck import js_fuck
from ...utils.handle_files import *
from ...gather_info.info_s import *
from ...gather_info.ips import *

class Vulnerability_Scanner_Utilities:

Expand Down
6 changes: 3 additions & 3 deletions bane/utils/extrafun.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import cgi, requests, os, random, re, hashlib, urllib, sys, json, gc,socket,socks
from bane.cryptographers import *
from bane.utils.handle_files import *
from ..cryptographers import *
from ..utils.handle_files import *
if sys.version_info < (3, 0):
import HTMLParser
else:
import html.parser as HTMLParser
import bs4
from bs4 import BeautifulSoup
from bane.common import *
from ..common import *


class Userful_Utilities:
Expand Down
4 changes: 2 additions & 2 deletions bane/utils/pager/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
import bs4
from bs4 import BeautifulSoup
from bane.common.payloads import *
from bane.gather_info.info_s import *
from ...common.payloads import *
from ...gather_info.info_s import *
from .cookies_manager import *
2 changes: 1 addition & 1 deletion bane/utils/proxer/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import requests, socks, socket, random, re,os,sys,threading,ssl
import bs4,bane,json
from bs4 import BeautifulSoup
from bane.common.payloads import *
from ...common.payloads import *

2 changes: 1 addition & 1 deletion bane/utils/socket_connection.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import socks,socket,ssl,random
from .proxer.proxies_getter import Proxies_Getter
from bane.common.payloads import *
from ..common.payloads import *

class Socket_Connection:

Expand Down

0 comments on commit cab57e7

Please sign in to comment.