mirror of
https://github.com/hackerschoice/thc-tips-tricks-hacks-cheat-sheet.git
synced 2026-06-10 23:47:49 +02:00
Update README.md
shar hacks.
This commit is contained in:
@@ -24,6 +24,7 @@ Got tricks? Send them to root@thc.org or submit a pull request.
|
||||
1. [uuencode](#feu-anchor)
|
||||
1. [openssl](#feo-anchor)
|
||||
1. [xxd](#fex-anchor)
|
||||
1. [Multiple binaries](#xeb-anchor)
|
||||
1. [File transfer using screen from REMOTE to LOCAL](#ftsrl-anchor)
|
||||
1. [File transfer using screen from LOCAL to REMOTE](#ftslr-anchor)
|
||||
5. [Reverse Shell / Dumb Shell](#rs-anchor)
|
||||
@@ -195,6 +196,27 @@ Decode:
|
||||
```
|
||||
$ xxd -p -r >issue.net-COPY
|
||||
```
|
||||
<a id="feb-anchor"></a>
|
||||
**4.iii. File Encoding - Multiple Binaries**
|
||||
|
||||
Method 1: Using *shar* to create a self extracting shell script with binaries inside:
|
||||
```
|
||||
$ shar *.png *.c >stuff.shar
|
||||
```
|
||||
Transfer *stuff.shar* to the remote system and execute it:
|
||||
```
|
||||
$ chmod 700 stuff.shar
|
||||
$ ./stuff.shar
|
||||
```
|
||||
|
||||
Method 1: Using *tar*
|
||||
```
|
||||
$ tar cfz - *.png *.c | openssl base64 >stuff.tgz.b64
|
||||
```
|
||||
Transfer *stuff.tgz.b64* to the remote system and execute:
|
||||
```
|
||||
$ openssl base64 -d | tar xfz -
|
||||
```
|
||||
|
||||
<a id="ftsrl-anchor"></a>
|
||||
**4.iv. File transfer - using *screen* from REMOTE to LOCAL**
|
||||
|
||||
Reference in New Issue
Block a user