Beispiel #1
0
    def __init__(self):
        h.generate_keys()
        self.server = server.Server()
        if len(sys.argv) == 2 and sys.argv[1] == "debug":
            self.server.debug = True
        else:
            self.server.debug = False

        #Getting hostname and IP address for reference display in the banner
        hostname = socket.gethostname()
        IPAddr = socket.gethostbyname(hostname)

        self.payloads = self.import_payloads()
        self.banner_text = h.GREEN + """
            .---.          .-. .        . .       \\      `.
            |             (   )|        | |     o  \\       `.
            |--- .-.. .-.. `-. |--. .-. | |         \\        `.
            |   (   |(   |(   )|  |(.-' | |     o    \\      .`
            '---'`-`| `-`| `-' '  `-`--'`-`-          \\   .`
                ._.' ._.'                               `""" + h.COLOR_INFO + """

        
                              /`\\
                             /   |
                    _.._     |  /
                  /`    \    | /
                 |  .-._ '-"` (
                 |_/   /   e  e\\
                       |  =   @ )=
                        \  '--`/
                        / ---<`
                       | ,    \\\\
                       | |     \\\\__
                       / ;     |.__)==,
                      (_/.-.   ; //""\"\\\\
                     {` |   \_/  ||___||
                      '-\   / |  |(___)|
                         | /  |  |XXXXX|
                        /  \  '-.\XXXXX/
                   rpw  \__|----' `""\"`

            """ + h.WHITE + "\nCommunity Fork: 1.0.0  - " + githash + "\n" + h.ENDC
        self.main_menu_text = h.WHITE + "-" * 40 + "\n" + "Your computer hostname is: " + hostname + "\n" + "Your computer's IP Address is: " + IPAddr + "\n"
        self.main_menu_text = h.WHITE + "-" * 40 + "\n" + """Menu:\n
                1): Start Server
                2): Start MultiHandler
                3): Create Payload
                4): Exit
            """ + "\n" + h.NES
Beispiel #2
0
 def runTest(self):
     self.port = random.randint(8000, 8999)
     self.ps = server.Server(_FakeBackendServer(), 'localhost', self.port)
     thr = threading.Thread(target=self._run_thread)
     thr.start()
     c1 = self._get_conn()
     c2 = self._get_conn()
     self._do_a_test(c1)
     c3 = self._get_conn()
     self._do_a_bad_test(c2)
     self._do_a_test(c3)
     c4 = self._get_conn()
     self._do_a_bad_test(c4)
     time.sleep(2)
     self.ps.stop()
     thr.join()
     self.assertTrue(True)
Beispiel #3
0
    def __init__(self):
        h.generate_keys()
        self.server = server.Server()
        if len(sys.argv) == 2 and sys.argv[1] == "debug":
            self.server.debug = True
        else:
            self.server.debug = False
        self.payloads = self.import_payloads()
        self.banner_text = h.ENDC + """
         _     __,..---""-._                 ';-,
  ,    _/_),-"`             '-.                `\\\\
 \|.-"`    -_)                 '.                ||
 /`   a   ,                      \              .'/
 '.___,__/                 .-'    \_        _.-'.'
    |\  \      \         /`        _`------`_.-'
       _/;--._, >        |   --.__/ `------`
     (((-'  __//`'-......-;\      )
          (((-'       __//  '--. /   mouse/MPL
                    (((-'    __//
                           (((-'
""" + h.WHITE + "Mouse Payload Loader" + h.GREEN_THIN + " v1.6" + h.WHITE + "\nDeveloped by Entynetproject\n" + h.ENDC
Beispiel #4
0
    def __init__(self):
        h.generate_keys()
        self.server = server.Server()
        if len(sys.argv) == 2 and sys.argv[1] == "debug":
            self.server.debug = True
        else:
            self.server.debug = False
        self.payloads = self.import_payloads() 
        self.banner_text = h.GREEN+"""
.---.          .-. .        . .       \\      `.
|             (   )|        | |     o  \\       `.
|--- .-.. .-.. `-. |--. .-. | |         \\        `.
|   (   |(   |(   )|  |(.-' | |     o    \\      .`
'---'`-`| `-`| `-' '  `-`--'`-`-          \\   .`
     ._.' ._.'                               `"""+h.COLOR_INFO+"""
                          .".
                         /  |
                        /  /
                       / ,"
           .-------.--- /
          "._ __.-/ o. o\  
             "   (    Y  )
                  )     /
                 /     (
                /       I
            .-"         |
           /  _     \    \ 
          /    `. ". ) /' )
         Y       )( / /(,/
        ,|      /     )
       ( |     /     /
        " \_  (__   (__       
            "-._,)--._,)
"""+h.WHITE+"\nVersion: 3.1.1\nCreated By Lucas Jackson (@neoneggplant)\n"+h.ENDC
        self.main_menu_text = h.WHITE+"-"*40+"\n"+"""Menu:\n
    1): Start Server
    2): Start MultiHandler
    3): Create Payload
    4): Exit
""" + "\n"+h.NES
Beispiel #5
0
    def __init__(self):
        h.generate_keys()
        self.server = server.Server()
        if len(sys.argv) == 2 and sys.argv[1] == "debug":
            self.server.debug = True
        else:
            self.server.debug = False
        self.payloads = self.import_payloads() 
        self.banner_text = h.RED+"""        

   
THE B33F IS HERE  """+h.COLOR_INFO+"""
 
-----------------

"""+h.WHITE+"\nVersion: 1.0\nCreated By Cameron Maccarrone (@ohkeeCS)\n"+h.ENDC
        self.main_menu_text = h.WHITE+"-"*40+"\n"+"""Menu:\n
    1): Start Server
    2): Start MultiHandler
    3): Create Payload
    4): Exit
""" + "\n"+h.NES
import socket
import time
import threading
import sys, os, traceback, types
import select
from random import randint

TCP_IP = '88.151.99.237'
TCP_PORT = 6809
BUFFER_SIZE = 1024

sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((TCP_IP, TCP_PORT))

s = server.Server()
m = messages.Messages()


def _testserver():
    s.start()


def _testmessage():
    m.start(
        '#APMIS:SERVER::MIS:1:9:11:MISU..#WXMIS:SERVER:LHBP..$AXMIS:SERVER:METAR:LHBP\r\n',
        sock)


ServerThread = threading.Thread(target=_testserver, args=())
MessagesThread = threading.Thread(target=_testmessage, args=())
Beispiel #7
0
#!/usr/bin/python
from modules import server
from modules import helper as h
import sys, os
server = server.Server()

#banner
class EggShell:
    def __init__(self):
        h.generate_keys()
        self.payloads = self.import_payloads() 
        self.banner_text = h.GREEN+"""
.---.          .-. .        . .       \\      `.
|             (   )|        | |     o  \\       `.
|--- .-.. .-.. `-. |--. .-. | |         \\        `.
|   (   |(   |(   )|  |(.-' | |     o    \\      .`
'---'`-`| `-`| `-' '  `-`--'`-`-          \\   .`
     ._.' ._.'                               `"""+h.COLOR_INFO+"""
                          .".
                         /  |
                        /  /
                       / ,"
           .-------.--- /
          "._ __.-/ o. o\  
             "   (    Y  )
                  )     /
                 /     (
                /       I
            .-"         |
           /  _     \    \ 
          /    `. ". ) /' )