Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
danielguardicore committed Sep 21, 2016
2 parents 3549bb3 + 224099a commit 9ab5b17
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions chaos_monkey/exploit/rdpgrinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,19 @@ def _keysSender(self):
time.sleep(KEYS_SENDER_SLEEP)

def onReady(self):
time.sleep(1)
reactor.callFromThread(self._controller.sendKeyEventUnicode, ord('Y'), True)
time.sleep(1)
reactor.callFromThread(self._controller.sendKeyEventUnicode, ord('Y'), False)
time.sleep(1)
pass

def onClose(self):
self.success = len(self._keys) == 0
self.closed = True

def onSessionReady(self):
LOG.debug("Logged in, session is ready for work")
self._last_update = time.time()
self._keys_thread.start()

Expand Down
3 changes: 1 addition & 2 deletions chaos_monkey/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ psutil
PyInstaller
ecdsa
netifaces
requests
grequests
grequests

0 comments on commit 9ab5b17

Please sign in to comment.