ssh -i key hacker@dojo.pwn.college

打开

输入

定义

设环境变量

./embryoio_level5</tmp/cupctm

./embryoio_level6>/tmp/pidlgo

env -i ./embryoio_level7

# ipython

from pwn import *
io=process( ["/challenge/embryoio_level17","glfntrfxtf"])
io.interactive()

from pwn import *
file='/challenge/embryoio_level18'
io=process(file,env={'faahmg':'jglwkkjcdq'})
io.interactive()

from pwn import *
file='/challenge/embryoio_level19'
infile=open('/tmp/ldgqeo')
io=process(file,stdin=infile)
io.interactive()

from pwn import *
file='/challenge/embryoio_level20'
outfile=open('/tmp/txrnep','a+')
io=process(file,stdout=outfile)
io.interactive()

from pwn import *
file='/challenge/embryoio_level21'
io=process(file,env={})
io.interactive()

# Python 脚本

运行

import subprocess

cmd1 = '/challenge/embryoio_level22'
subprocess.run(cmd1)

传参

import subprocess

cmd1 = '/challenge/embryoio_level24'

subprocess.run([cmd1,'bmwafgxjec'])

环境

import subprocess

subprocess.run('/challenge/embryoio_level25',env={'hziqez':'gcjdaipjgp'})

输入输出

from pwn import *
file='/challenge/embryoio_level26'
infile=open('/tmp/yozqac')
io=process(file,stdin=infile)
io.interactive()

from pwn import *
file='/challenge/embryoio_level27'
outfile=open('/tmp/pepqlj','a+')
io=process(file,stdout=outfile)
io.interactive()

空环境

from pwn import *
file='/challenge/embryoio_level28'
io=process(file,env={})
io.interactive()

Edited on

Give me a cup of [coffee]~( ̄▽ ̄)~*

lxy WeChat Pay

WeChat Pay

lxy Alipay

Alipay

lxy PayPal

PayPal