Skip to content

Commit bc73ba5

Browse files
committed
add more advanced features to steganography tutorial 2
1 parent e509ed6 commit bc73ba5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

ethical-hacking/steganography/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,21 @@ To run this:
3939
[+] Decoding...
4040
[+] Decoded data: This is some secret data.
4141
```
42+
43+
- To encode the `foo.pdf` file into the `image.PNG` image:
44+
```
45+
$ python steganography_advanced.py -e image.PNG -f foo.pdf -b 1
46+
```
47+
**Output:**
48+
```
49+
[*] Maximum bytes to encode: 125028
50+
[*] Data size: 84158
51+
[*] Encoding data...
52+
[+] Saved encoded image.
53+
```
54+
- Now decoding it into a file `foo_decoded.pdf`:
55+
```
56+
python steganography_advanced.py -d image_encoded.PNG -f foo_decoded.pdf -b 1
57+
[+] Decoding...
58+
[+] File decoded, foo_decoded.pdf is saved successfully.
59+
```

0 commit comments

Comments
 (0)