mirror of
https://github.com/KevinMidboe/knowit_julekalender-2018.git
synced 2025-12-07 20:08:45 +00:00
Using a gem package called zsteg to solve door 3.
This commit is contained in:
12
luke_03/steganography.py
Executable file
12
luke_03/steganography.py
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env python3.6
|
||||
import subprocess, os
|
||||
|
||||
def main():
|
||||
path = os.path.dirname(os.path.realpath(__file__)) + '/bilde.png'
|
||||
result = subprocess.run(['zsteg', path], stdout=subprocess.PIPE)
|
||||
decode = result.stdout.decode('utf-8')
|
||||
|
||||
return decode
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user