-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
86 changed files
with
110,657 additions
and
9,281 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"virustotal": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# PEFrame 6.0 | ||
# Debian/Ubuntu Installation | ||
|
||
echo "Check for python3......" | ||
if [ -z $(which python3) ]; then | ||
sudo apt -y install python3 | ||
sudo apt -y install python3-dev | ||
fi | ||
|
||
echo "Check for pip3........." | ||
if [ -z $(which pip3) ]; then | ||
sudo apt -y install python3-pip | ||
fi | ||
|
||
echo "Install libssl-dev....." | ||
sudo apt -y install libssl-dev | ||
|
||
echo "Install swig..........." | ||
sudo apt -y install swig | ||
|
||
echo "Install dependencies..." | ||
pip3 install -r requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
def get_result(pe, strings_match): | ||
alerts = [] | ||
if hasattr(pe, 'DIRECTORY_ENTRY_IMPORT'): | ||
for lib in pe.DIRECTORY_ENTRY_IMPORT: | ||
for imp in lib.imports: | ||
for alert in strings_match: | ||
if alert and imp.name != None: # remove 'null' | ||
if imp.name.decode('ascii').startswith(alert): | ||
alerts.append(imp.name.decode('ascii')) | ||
|
||
return sorted(set(alerts)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
# https://stackoverflow.com/questions/7821661/how-to-code-autocompletion-in-python | ||
|
||
import readline | ||
|
||
class MyCompleter(object): # Custom completer | ||
|
||
def __init__(self, cmd_list): | ||
self.cmd_list = sorted(cmd_list) | ||
|
||
def complete(self, text, state): | ||
if state == 0: # on first trigger, build possible matches | ||
if text: # cache matches (entries that start with entered text) | ||
self.matches = [s for s in self.cmd_list | ||
if s and s.startswith(text)] | ||
else: # no text entered, all matches possible | ||
self.matches = self.cmd_list[:] | ||
|
||
# return match indexed by state | ||
try: | ||
return self.matches[state] | ||
except IndexError: | ||
return None | ||
|
||
|
||
def get_result(cmd_list, prompt_text): | ||
completer = MyCompleter(cmd_list) | ||
readline.set_completer(completer.complete) | ||
readline.set_completer_delims(' \t\n;') | ||
readline.parse_and_bind('tab: complete') | ||
|
||
for cmd in cmd_list: | ||
readline.add_history(cmd) | ||
|
||
raw = input(prompt_text+' ') | ||
|
||
return raw |
Oops, something went wrong.