+
    ¿ÌjÇ  ã                   óx   € R t Rt^ RIt^ RIt^ RIt^RIHt ^ RIHt ^RI	H
t
 ^ RItR t]R8X  d
   ]! 4        R# R# )a®  
pyxswf.py

pyxswf is a script to detect, extract and analyze Flash objects (SWF) that may
be embedded in files such as MS Office documents (e.g. Word, Excel),
which is especially useful for malware analysis.

pyxswf is an extension to xxxswf.py published by Alexander Hanel on
http://hooked-on-mnemonics.blogspot.nl/2011/12/xxxswfpy.html
Compared to xxxswf, it can extract streams from MS Office documents by parsing
their OLE structure properly (-o option), which is necessary when streams are
fragmented.
Stream fragmentation is a known obfuscation technique, as explained on
http://www.breakingpointsystems.com/resources/blog/evasion-with-ole2-fragmentation/

It can also extract Flash objects from RTF documents, by parsing embedded
objects encoded in hexadecimal format (-f option).

pyxswf project website: http://www.decalage.info/python/pyxswf

pyxswf is part of the python-oletools package:
http://www.decalage.info/python/oletools
z0.54N)Úrtfobj)ÚBytesIO)Úxxxswfc                  ó,  € \        R \        ,          4       \        R4       \        R4       Rp \        P                  ! \        R,           V ,           R7      pVP                  RRRR	R
R7       VP                  RRRRRR7       VP                  RRRRRR7       VP                  RRRRRR7       VP                  RRRRRR7       VP                  RRRRR R!7       VP                  R"R#RR$R%R7       VP                  R&R'RR(R)R7       VP                  R*R+RR,R-R7       VP                  4       w  r#\        V4      ^ 8X  d   VP                  4        R.# VP                  '       Ed   V Fý  p\        P                  ! V4      pVP                   FÄ  pVf   K	  VP                  \        P                  8X  g   K*  VP                  VP                   VP"                  4      pVP%                  4       pR/V9   g   R0V9   dG   \        R1\'        VP(                  4      ,          4       \*        P,                  ! WvP(                  V4       VP/                  4        KÆ  	  VP/                  4        Kÿ  	  R.# VP0                  '       d„   V F{  p\2        P4                  ! V4       F^  w  ršpR/V9   g
   R0V9   g   K  \        R2\        V4      V	3,          4       \7        V4      pR3V	,          p\*        P,                  ! W{V4       K`  	  K}  	  R.# \*        P8                  ! 4        R.# )4z0pyxswf %s - http://decalage.info/python/oletoolszGPlease report any issue at https://github.com/decalage2/oletools/issuesÚ z!usage: %prog [options] <file.bad>Ú
)Úusagez-xz	--extractÚ
store_trueÚextractziExtracts the embedded SWF(s), names it MD5HASH.swf & saves it in the working dir. No addition args needed)ÚactionÚdestÚhelpz-yz--yaraÚyarazdScans the SWF(s) with yara. If the SWF(s) is compressed it will be deflated. No addition args neededz-sz	--md5scanÚmd5scanzgScans the SWF(s) for MD5 signatures. Please see func checkMD5 to define hashes. No addition args neededz-Hz--headerÚheaderz6Displays the SWFs file header. No addition args neededz-dz--decompressÚ
decompresszDeflates compressed SWFS(s)z-rz--recdirÚPATHÚstringzZWill recursively scan a directory for files that contain SWFs. Must provide path in quotes)r   Útyper   z-cz
--compressÚcompresszCompresses the SWF using Zlibz-oz--oleÚolezCParse an OLE file (e.g. Word, Excel) to look for SWF in each streamz-fz--rtfÚrtfz9Parse an RTF file to look for SWF in each embedded objectNs   FWSs   CWSzOLE stream: %sz)RTF embedded object size %d at index %08XzRTF_embedded_object_%08X)ÚprintÚ__version__ÚoptparseÚOptionParserÚ__doc__Ú
add_optionÚ
parse_argsÚlenÚ
print_helpr   ÚolefileÚ	OleFileIOÚ
direntriesÚ
entry_typeÚSTGTY_STREAMÚ_openÚ
isectStartÚsizeÚgetvalueÚreprÚnamer   Ú
disneylandÚcloser   r   Úrtf_iter_objectsr   Úmain)r   ÚparserÚoptionsÚargsÚfilenamer   ÚdirentryÚfÚdataÚindexÚorig_lenr+   s               Úi/home/l0st/web/w4ttz.lol/public_html/toolz/MsgDoxxer/venv/lib/python3.14/site-packages/oletools/pyxswf.pyr/   r/   W   sÉ  € ä	Ð=ÄÕKÔLÜ	ÐTÔUÜ	ˆ2„Jð 0€EÜ×"Ò"¬°4­¸%Õ)?Ô@€FØ
×Ñ�d˜K°À9ð  TÐô  @Ø
×Ñ�d˜H¨\Àð  NtÐô  uØ
×Ñ�d˜K°À9ð  T}Ðô  ~Ø
×Ñ�d˜J¨|À(ð  RJÐô  KØ
×Ñ�d˜N°<ÀlÐYvÐÔwØ
×Ñ�d˜J¨V¸(ð  JfÐô  gØ
×Ñ�d˜L°ÀJÐUtÐÔuà
×Ñ�d˜G¨L¸uð  LQÐô  RØ
×Ñ�d˜G¨L¸uð  LGÐô  Hð ×'Ñ'Ó)�O€Wô ˆ4ƒy�A„~Ø×ÑÔÙð ‡{‡{�{ÛˆHÜ×#Ò# HÓ-ˆCØŸNœN�ØÔ'¨H×,?Ñ,?Ä7×CWÑCWÖ,WØŸ	™	 (×"5Ñ"5°x·}±}ÓE�AàŸ:™:›<�DØ ”~¨°4¬ÜÐ.´°h·m±mÓ1DÕDÔEä×)Ò)¨!¯]©]¸GÔDØ—G‘G–Iñ +ð �I‰IŽKó ð 
��ˆÛˆHÜ)/×)@Ò)@ÀÖ)JÑ%� Ø˜T”> V¨t¦^ÜÐEÌÈTËÐTYÐHZÕZÔ[Ü ›�AØ5¸Õ=�Dä×%Ò% a¨wÖ7ó *Kó ô 	�ŠŽó    Ú__main__)r   r   r   ÚsysÚosr   r   Úior   Úthirdparty.xxxswfr   r!   r/   Ú__name__© r:   r9   Ú<module>rB      s@   ðñðx €÷  Ó Ý Ý Ý %Û ò
>ð@ ˆzÔÙ†Fñ r:   