본문 바로가기

debug15

간단한 자동명령 수행(ssh version) 간단한 자동명령 수행(ssh version)1.소스 ''' write by SpeeDr00t ''' from pwn import * class CSshConnector : ''' get ssh ''' def __init__(self, _host, _user , _password) : self.handle = '' self.set_host(_host) self.set_user(_user) self.set_password(_password) def set_host( self, _host ) : self.host = _host def get_host(self) : return self.host def set_user(self, _user ) : self.user = _user def get_user(self).. 2016. 11. 8.
스마트폰에 원하는 파일 자동 업로드 스마트폰에 원하는 파일 자동 업로드(아 !! 귀찮아 프로젝트) 설치및 간단한 사용법 : pwntools install 및 Getting Started(ftp 접속) 참조 : 간단한 자동명령 수행 1.소스 ''' write by SpeeDr00t ''' from pwn import * def push_file_android( pname ) : sh = process('/bin/sh') sh.sendline('pwd') print sh.recvline() cmd1 = 'adb push %s /sdcard/' % pname print cmd1 print "[+] send %s" % cmd1 sh.sendline(cmd1) print sh.recvline() print "[+] send adb shell" sh.. 2016. 11. 2.
pwntools install 및 Getting Started(ftp 접속) pwntools install 및 Getting Started(ftp 접속) ref : https://media.readthedocs.org/pdf/pwntools/2.2/pwntools.pdf 1.설치 apt-get install python2.7 python2.7-dev python pip install --upgrade pwntools 1.1 ndk때문에 binutils이 충돌나거나 안깔린경우 $ sudo apt-get remvoe binutils $ sudo apt-get install libssl-dev $ sudo apt-get install git $ sudo apt-get install libc6-armel-cross libc6-dev-armel-cross $ sudo apt-get ins.. 2016. 11. 2.