Skip to content

Commit

Permalink
Updates en/module_0x2__system_kung_fu/file_manipulation.md
Browse files Browse the repository at this point in the history
Auto commit by GitBook Editor
  • Loading branch information
KINGSABRI committed Feb 12, 2017
1 parent b9be3a7 commit 680a025
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion book.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"expandable-chapters",
"language-picker",
"sitemap",
"codeblock-label"
"-copy-code"
],
"pluginsConfig": {
"addcssjs": {
Expand Down
5 changes: 2 additions & 3 deletions en/module_0x2__system_kung_fu/file_manipulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ Simple script to hide a file `file.pdf` in an image `image.png` then write it in
Then, it recovers the `file.pdf` from `steg.png` to `hola.pdf`.


{% label %}stegano.rb{% endlabel %}
```ruby
#!/usr/bin/env ruby
# KING SABRI | @KINGSABRI
file1, file2 = ARGV
sec_file = File.read file1 #'file.pdf'
nor_file = File.read file2 #'image.png'
sec_file = File.read file1 # 'file.pdf'
nor_file = File.read file2 # 'image.png'
sep = '*------------------------*'
one_file = [nor_file, sep, sec_file]

Expand Down

0 comments on commit 680a025

Please sign in to comment.