FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
jeb-samplecode/scripts/ProcessFile.py at master · pnfsoftware/jeb-samplecode · GitHub
pnfsoftware
jeb-samplecode
Repository navigation
Code
Pull requests
3
(3)
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
jeb-samplecode
/
scripts
/
ProcessFile.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (16 loc) · 716 Bytes
Breadcrumbs
jeb-samplecode
/
scripts
/
ProcessFile.py
Copy path
File metadata and controls
16 lines (16 loc) · 716 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#?description=Open and process a file into a JEB project.
#?shortcut=
from
com
.
pnfsoftware
.
jeb
.
client
.
api
import
IScript
"""
Sample script for JEB Decompiler.
"""
class
ProcessFile
(
IScript
):
def
run
(
self
,
ctx
):
# if run in headless mode, you could instead use ctx.getArguments() to retrieve the input file
# if ctx is IGraphicalClientContext (assumed to be the case here), we display a file selector
path
=
ctx
.
displayFileOpenSelector
(
'Select a file for processing'
)
if
not
path
:
return
# if no project exists, one will be created and the input file processed as the primary artifact
# if a project exists, the input file will be added to the project and processed
ctx
.
open
(
path
)
Back
|
FazBrowse Home
|
New Git URL