Doing a few challanges, trying to use Python to solve as much as possible (As I know the challange can be completed without the use of Python). One challange, relating to Steganography, was to find the filename and any extensions within an image. Doing Steg scans with wordlists could resolve this, but somebody mentioned to me that if I opened the image as a word file, then the actual text is visual already.
This is true, but with over 500 lines of this: �~�b���:ӄ��M��Ɖ�� D�B`�"YOU_GOT_IT_RIGHT!"
I wanted to see if there was a way I could implement a Python script to search through the file and then just show me all English characters (with possibly "!","_","{","}"). I mean all ASCII characters; which includes the uppercase and lowercase latin alphabet, numerals, and english special symbols
Any help would be appreciated.
A little mix-match of things I have tried below.
This is true, but with over 500 lines of this: �~�b���:ӄ��M��Ɖ�� D�B`�"YOU_GOT_IT_RIGHT!"
I wanted to see if there was a way I could implement a Python script to search through the file and then just show me all English characters (with possibly "!","_","{","}"). I mean all ASCII characters; which includes the uppercase and lowercase latin alphabet, numerals, and english special symbols
Any help would be appreciated.
A little mix-match of things I have tried below.
import json import string start = json.loads(open('image.json').read()) Lower = ("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y" ,"z") Upper = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R" , "S", "T", "U", "V", "W", "X", "Y", "Z"] Special = ["!", "_", "{", "}", "(", ")"] TEST = string.printable print (TEST) filtered_contents = ''.join(filter(lambda s: s in TEST, start)) myfile.close()