Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zerfiXOR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ruben Anthony Gonzalez
zerfiXOR
Commits
6d2ce6cb
Commit
6d2ce6cb
authored
5 years ago
by
Ruben Anthony Gonzalez
Browse files
Options
Downloads
Patches
Plain Diff
Add statistics
parent
66abfa1f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+47
-0
47 additions, 0 deletions
README.md
statistics.py
+34
-0
34 additions, 0 deletions
statistics.py
with
81 additions
and
0 deletions
README.md
0 → 100644
+
47
−
0
View file @
6d2ce6cb
# ZerfiXOR
Very simple exploit launcher in < 200 lines of code.
Offers:
*
Configurable Amount of workers
*
Statistics output
*
Automatic exploit dicovery
*
State preserving
Start with:
`python3 main.py`
## Adding an exploit
To add an exploit, just copy it into the
`exploits`
folder
**and set the eXecute bit**
.
The exploit can be written in any language, but needs a shebang line.
## Align for CTF
Adjust the
`changeme.py`
file to use the tool in a ctf.
## Statistics
To receive statistics, just do a
`python3 statistics.py`
(also works will launcher is running).
It will give you something like:
```
----------------------------------------------------------------------------------------------------------
|team_id |SUCCESS |INVALID |ALREADY_SUBMITTED |ERROR |
----------------------------------------------------------------------------------------------------------
|0 |2 |0 |1 |3 |
|1 |2 |2 |3 |0 |
|2 |3 |0 |1 |2 |
|3 |4 |1 |1 |0 |
|4 |3 |1 |1 |1 |
|5 |3 |0 |2 |1 |
|6 |2 |1 |1 |2 |
|7 |3 |0 |0 |3 |
|8 |2 |3 |0 |1 |
|9 |2 |1 |3 |0 |
|10 |2 |0 |1 |3 |
|11 |3 |1 |0 |2 |
|12 |2 |0 |2 |2 |
|13 |4 |0 |1 |1 |
|14 |3 |2 |0 |1 |
|15 |2 |2 |1 |1 |
----------------------------------------------------------------------------------------------------------
```
This diff is collapsed.
Click to expand it.
statistics.py
0 → 100644
+
34
−
0
View file @
6d2ce6cb
import
changeme
import
os
team_vals
=
{}
if
not
os
.
path
.
isfile
(
changeme
.
res_file_path
):
print
(
"
No results given yet
"
)
exit
(
1
)
with
open
(
changeme
.
res_file_path
)
as
f
:
for
l
in
f
:
ret_val
,
team_id
,
flag
=
l
.
strip
().
split
(
"
"
,
2
)
ret_val
=
int
(
ret_val
)
team_id
=
int
(
team_id
)
if
team_id
not
in
team_vals
:
team_vals
[
team_id
]
=
[
0
]
*
len
(
changeme
.
MESSAGES
)
team_vals
[
team_id
][
ret_val
]
+=
1
def
make_row
(
entries
):
column_width
=
3
+
max
(
map
(
len
,
changeme
.
MESSAGES
))
return
"
|
"
+
"
|
"
.
join
([
x
.
ljust
(
column_width
,
"
"
)
for
x
in
entries
])
+
"
|
"
header
=
make_row
([
"
team_id
"
]
+
changeme
.
MESSAGES
)
print
(
"
-
"
*
len
(
header
))
print
(
header
)
print
(
"
-
"
*
len
(
header
))
for
t
in
sorted
(
team_vals
.
keys
()):
print
(
make_row
([
str
(
t
)]
+
list
(
map
(
str
,
team_vals
[
t
]))))
print
(
"
-
"
*
len
(
header
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment