First, demonstrate the effect of rebound shell
0. Look at the Python version
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/8B/90/wKioL1hRTinAlo_nAAASu8q0u_A128.jpg "title=" Python.jpg "style=" Float:none; "alt=" wkiol1hrtinalo_naaasu8q0u_a128.jpg "/>
1, our side is the service side
After the client connects, the command can be entered, such as the PWD entered below
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/8B/93/wKiom1hRTinRwuGgAAAlCyMQxWk077.jpg "title=" Server.jpg "style=" Float:none; "alt=" wkiom1hrtinrwuggaaalcymqxwk077.jpg "/>
2, the target machine is the client, input IP and port
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/8B/93/wKiom1hRTirT-LvAAAAUxl6wDjg397.jpg "title=" Client.jpg "style=" Float:none; "alt=" wkiom1hrtirt-lvaaaauxl6wdjg397.jpg "/>
Second, code + comments
0. Service side
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/8B/90/wKioL1hRUe2jLliHAABKpqAJraM123.png "title=" Server1.png "style=" float:left; "alt=" Wkiol1hrue2jllihaabkpqajram123.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/8B/93/wKiom1hRUe7SRIAlAABAPlut6pw741.png "title=" Server2.png "style=" Float:none; "alt=" Wkiom1hrue7srialaabaplut6pw741.png "/>
1, the Client
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/8B/90/wKioL1hRUOuA6OKSAAAy7dB17Pg181.png "title=" Client1.png "style=" float:left; "alt=" Wkiol1hruoua6oksaaay7db17pg181.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/8B/90/wKioL1hRUOvjGP2fAABVYkjZQc0722.png "title=" Client2.png "style=" Float:none; "alt=" Wkiol1hruovjgp2faabvykjzqc0722.png "/>
This article is from the "Li Chunguang Technology blog" blog, make sure to keep this source http://lichunguang.blog.51cto.com/10274243/1882841
Python3 implementation--rebound shell