extremecoders-re / bytecode_simplifier

A generic deobfuscator for PjOrion obfuscated python scripts
https://0xec.blogspot.com/2017/07/deobfuscating-pjorion-using-bytecode.html
103 stars 36 forks source link

Where can I get old version of NetworkX? #7

Open neeeeecka opened 4 years ago

neeeeecka commented 4 years ago

they provide releases for python3+ but this project is for 2.7, is there any way I can get old release of networkx?

Thanks.

abel1502 commented 4 years ago

You can download it from their official github page: https://github.com/networkx/networkx/releases . The last version to support python 2.7 is 2.2, I believe. I'd also like to ask you to report your success with bytecode simplifier, since I had some troubles with making it work, only part of which I have managed to troubleshoot.

neeeeecka commented 4 years ago

@abel1502 Okay, I managed to make an example code from https://0xec.blogspot.com/2017/07/deobfuscating-pjorion-using-bytecode.html?showComment=1586639600235#c622776704768001395 work on 64bit windows10.

Here's success story:

  1. Download bytecode_simplifier.zip and extract files anywhere.

  2. install python2.7 x32 = x86(only, not x86-64)bit very important.

  3. Install PJOrion.

  4. Install bytecode traced python27.dll into C/windows/SysWOW64 folder instead of System32 from https://github.com/extremecoders-re/python2-tracer/releases/tag/1.0

  5. manually install networkx 2.1 into C/python27/Libs from https://github.com/networkx/networkx/releases

  6. download decorator.py 2017 release from https://pypi.org/project/decorator/4.0.11/ and put file into python27/Libs/networkx/utils

  7. download and install temporarily on desktop GraphViz 2.38 stable release for windows from https://graphviz.gitlab.io/download/

  8. create folder in C:\Program Files\att

  9. put GraphViz folder from your install location into ProgramFile\att (executables should be at programFiles\att\GraphViz]bin\something something.exe)

  10. Also add GraphViz\bin folder into System's PATH environment variable

  11. Download PyDotPlus manually from https://github.com/carlos-jenkins/pydotplus and install into Python27/Libs

  12. Download graphviz.py file from https://pypi.org/project/graphviz/#files and install into python27\Lib\pydotplus\

  13. Now scripts will not compile and give syntax errors because of networkx and this project's versions incompability. To make this work, I edited script files, you can download them from: https://github.com/blackstormx/bytecode_simplifier

  14. Put files as are structured in my github repo, Python27 folder containments into Python27 installation, and bytecode_simplifier containments into your bytecode_simplifier folder, replace all files as will be suggested by os.

  15. Download easypythondecompiler from https://sourceforge.net/projects/easypythondecompiler/

  16. Do tutorial steps, from very above link(except now you have installed everything now, if done correctly it should work fine)

abel1502 commented 4 years ago

Thanks, I'll try it

IamMusavaRibica commented 10 months ago

I installed networkx version 1.11 because it was released at around the same time as this repository. It worked. Note that you can install the specific versions directly from pypi, using command pip install networkx==1.11 (or any other version) Here's my pip freeze just in case: image