mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-05-02 06:46:07 -04:00
web apps and natas
This commit is contained in:
parent
8c1733acda
commit
fdbba7131b
19 changed files with 1888 additions and 18 deletions
BIN
Steganography/Images/image.png
Normal file
BIN
Steganography/Images/image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
BIN
Steganography/Images/out_image.png
Normal file
BIN
Steganography/Images/out_image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
27
Steganography/Images/sudoku.py
Normal file
27
Steganography/Images/sudoku.py
Normal file
|
@ -0,0 +1,27 @@
|
|||
from PIL import Image
|
||||
|
||||
|
||||
# solved sudoku
|
||||
sudoku = '''
|
||||
964127538
|
||||
712385694
|
||||
385496712
|
||||
491578263
|
||||
238614975
|
||||
576239841
|
||||
627843159
|
||||
153962487
|
||||
849751326
|
||||
'''
|
||||
s = sudoku.replace('\n', '')
|
||||
|
||||
image = Image.open('image.png').convert('RGB')
|
||||
out = Image.new('RGB', image.size)
|
||||
|
||||
for j in range(9):
|
||||
for i in range(9):
|
||||
img_cell = image.crop((i * 50, j * 50, i * 50 + 50, j * 50 + 50))
|
||||
c = (int(s[j * 9 + i]) - 1) * 50
|
||||
out.paste(img_cell, (c, j * 50))
|
||||
|
||||
out.save('out_image.png')
|
18
Steganography/Images/xor_bytes.py
Normal file
18
Steganography/Images/xor_bytes.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
|
||||
__author__ = "bt3gl"
|
||||
|
||||
|
||||
def xor_str(str1, str2):
|
||||
flag = ""
|
||||
for i in range(len(str1)):
|
||||
flag += (chr(int(str1[i], 16) ^ int(str2[i], 16)))
|
||||
print flag
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
kTXt = ''.join('28 36 38 2C 10 03 04 14 0A 15 08 14 02 07 08 18 0D 00 61 04 16 11 0B 12 00 07 61 03 0C 73 02 1F 02 1D 06 12 63 04 08 03 0B 1C 14 03 63 1D 0E 03 0A 10 04 2A 61 8F AC C1 00 00 00 00').split()
|
||||
xORk = ''.join('43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57').split()
|
||||
|
||||
xor_str(kTXt, xORk)
|
25
Steganography/Images/xor_imag.go
Normal file
25
Steganography/Images/xor_imag.go
Normal file
|
@ -0,0 +1,25 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
file, err := os.Open("ataylor.png")
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
info, _ := os.Stat("ataylor.png")
|
||||
input := make([]byte, info.Size())
|
||||
out := make([]byte, len(input))
|
||||
file.Read(input)
|
||||
|
||||
key := [...]byte{0x43, 0x53, 0x41, 0x57} // CSAW
|
||||
for i := 0; i < len(input); i++ {
|
||||
out[i] = input[i] ^ key[i%len(key)]
|
||||
}
|
||||
|
||||
fmt.Println(string(out))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue