Example of file Carving for hidden files in another files(this is for jpg file)
No need for extra package , just using re and os module ( os:linux )
#'file carving for jpg file
if u want to extract another extention from target file change *jpg_sof* and *jpg_eof* with hexa start and end of file type'