MCPcopy Create free account
hub / github.com/LCBOWER33/StegoScan / process_file

Function process_file

StegoScan.py:967–975  ·  view source on GitHub ↗
(f, filename)

Source from the content-addressed store, hash-verified

965# TODO add in the new test and replace one old
966def t_lsb(output_dir):
967 def process_file(f, filename):
968 try:
969 hidden_message = lsb.reveal(f)
970 lsb_dir = os.path.join(results_folder, "lsb")
971 os.makedirs(lsb_dir, exist_ok=True)
972 shutil.copy(f, os.path.join(lsb_dir, filename))
973 prGreen(f"[LSB] Hidden message detected in {filename}")
974 except:
975 pass
976
977 png_dir = os.path.join(output_dir, "png")
978 if os.path.isdir(png_dir):

Callers

nothing calls this directly

Calls 1

prGreenFunction · 0.85

Tested by

no test coverage detected