-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCapa.py
More file actions
68 lines (46 loc) · 1.04 KB
/
Copy pathCapa.py
File metadata and controls
68 lines (46 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import marimo
__generated_with = "0.23.8"
app = marimo.App(width="medium")
@app.cell
def _():
import marimo as mo
import os
return mo, os
@app.cell(hide_code=True)
def _(mo):
mo.md("""
<h1>Capa</h1>
""")
return
@app.cell(hide_code=True)
def _(mo):
mo.md("""
<h2>Get plugx RAT sample</h2>
""")
return
@app.cell
def _(os):
os.system("git clone https://github.com/mrphrazer/obfuscation_detection.git")
return
@app.cell
def _(os):
os.system("unzip -P infected ./obfuscation_detection/examples/samples.zip")
return
@app.cell
def _(os):
os.system("wget https://github.com/mandiant/capa/raw/master/web/explorer/releases/capa-explorer-web-v1.0.0-6a2330c.zip")
return
@app.cell
def _(os):
os.system("unzip ./capa-explorer-web-v1.0.0-6a2330c.zip")
return
@app.cell
def _(os):
os.system("capa --h")
return
@app.cell
def _(os):
os.system("capa --os windows ./samples/plugx -j > ./capa-explorer-web/result.json")
return
if __name__ == "__main__":
app.run()