python - 使用GitHub Decoder脚本解码有效载荷

标签 python error-handling decoder malware-detection kali-linux

摘要:
我正在分析带有实时恶意软件的pcap文件(出于教育目的),并使用Wireshark-我设法从HTTP流中提取了一些对象和一些可执行文件。
在分析过程中,我发现了一些实例提示使用的Fiestka Exploit Kit。
用一吨谷歌搜索后,我遇到了一个GitHub代表:https://github.com/0x3a/tools/blob/master/fiesta-payload-decrypter.py我想达到什么目的?

I am trying to run the python fiesta-payload-decrypter.py against the malicious executable (extracted from the pcap).


到目前为止,我做了什么?

I've copied the code onto a plain text and saved it as malwaredecoder.py. - This script is saved in the same Folder (/Download/Investigation/) as the malware.exe that I want to run it against.


What's the Problem?

Traceback (most recent call last):
      File "malwaredecoder.py", line 51, in <module>
        sys.exit(DecryptFiestaPyload(sys.argv[1], sys.argv[2]))
      File "malwaredecoder.py", line 27, in DecryptFiestaPyload
        fdata = open(inputfile, "rb").read()
    IOError: [Errno 2] No such file or directory: '-'
我正在Kali Linux中运行此python脚本,任何帮助将不胜感激。谢谢。

最佳答案

该脚本需要两个参数...您要传递什么?
看起来它期望args是文件,并且它看到-(破折号)作为输入文件。https://github.com/0x3a/tools/blob/master/fiesta-payload-decrypter.py#L44在这里看起来第一个arg是输入文件,第二个是输出文件。
尝试像这样运行它:

python malewaredecoder.py /Download/Investigation/fileImInvestigating.pcap /Download/Investigation/out.pcap
话虽这么说,祝您好运,该脚本看起来很旧,并于2015年进行了最后修改。

关于python - 使用GitHub Decoder脚本解码有效载荷,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64973305/

相关文章:

ffmpeg:资源暂时不可用

python - 在python中递归调用类内部的方法

windows - 从批处理文件的Behat与错误处理程序

ruby-on-rails - 如何在 rails 开发环境中测试错误页面?

javascript - Javascript 中 undefined variable ,请帮助使其正确

android - 通过 mediaCodec dequeueInputBuffer() 解码 h264 数据包返回 "no such buffer is currently available"

python - Django 自定义迁移未执行

python - 多个进程之间的速率限制下载

python - Python 包的多个位置

mp4 - 检测h264流中的I帧(碎片mp4)