Skip to content

Update README.md

Update README.md #14

Triggered via push October 28, 2023 14:06
Status Success
Total duration 19s
Artifacts

pylint.yml

on: push
Run linters
10s
Run linters
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 1 warning
/home/runner/work/FFM/FFM/commands/help_commands.py#L18
from commands.command_manager import register_plugin from model.plugin.command import Command from model.driver.input_api import * # ----------------------------------------------------------------------------- + class Debug(Command): def __init__(self, *args, **kwargs): pass
/home/runner/work/FFM/FFM/commands/enumeration_commands.py#L12
GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http:https://www.gnu.org/licenses/>. """ -import random +import random import string import time from commands.command_manager import register_plugin from model.plugin.command import Command from model.driver.input_api import *
/home/runner/work/FFM/FFM/commands/enumeration_commands.py#L252
def usage(): return "Usage: !mtime 5" def execute(self): write_str( - "[+] Files Modified in the last {}m:\r\n".format(self.time), LogLevel.WARNING + "[+] Files Modified in the last {}m:\r\n".format(self.time), + LogLevel.WARNING, ) shell_exec( 'find / -type f -mmin -{} ! -path "/proc/*" ! -path "/sys/*" ! -path "/run/*" ! -path "/dev/*" ! -path "/var/lib/*" 2>/dev/null'.format( self.time ),
/home/runner/work/FFM/FFM/commands/enumeration_commands.py#L294
print_output=False, ) if len(test_sudo) == 0: write_str("[+] Sudo Version is likely NOT Vulnerable\r\n", LogLevel.WARNING) elif "not found" in test_sudo: - write_str("[!] Sudo not found, are you in a container?\r\n", LogLevel.WARNING) + write_str( + "[!] Sudo not found, are you in a container?\r\n", LogLevel.WARNING + ) else: write_str( - "[!] Sudo Version might be Vulnerable, examine further\r\n", LogLevel.ERROR + "[!] Sudo Version might be Vulnerable, examine further\r\n", + LogLevel.ERROR, ) class VM(Command): def __init__(self, *args, **kwargs):
/home/runner/work/FFM/FFM/commands/enumeration_commands.py#L473
"ls -R {} 2>/dev/null | grep \":$\" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'".format( self.path ), print_output=True, ) - res = ''.join(random.choices(string.ascii_uppercase + - string.digits, k=5)) + res = "".join(random.choices(string.ascii_uppercase + string.digits, k=5)) if not os.path.isdir("dirwalk"): os.mkdir("dirwalk") - with open("dirwalk/" + res + ".txt", 'w') as fp: + with open("dirwalk/" + res + ".txt", "w") as fp: fp.write(command_output) - write_str("[+] Wrote dirwalk output to dirwalk/{}\r\n".format(res), LogLevel.WARNING) + write_str( + "[+] Wrote dirwalk output to dirwalk/{}\r\n".format(res), LogLevel.WARNING + ) register_plugin(GetOS) register_plugin(Suid) register_plugin(Info)
/home/runner/work/FFM/FFM/commands/stealth_commands.py#L18
from commands.command_manager import register_plugin from model.plugin.command import Command from model.driver.input_api import * # ----------------------------------------------------------------------------- + class PtySpawn(Command): def __init__(self, *args, **kwargs): pass
/home/runner/work/FFM/FFM/commands/stealth_commands.py#L61
pass_command("unset SSH_CONNECTION") # ----------------------------------------------------------------------------- + class Shred(Command): def __init__(self, *args, **kwargs): self.file = None if len(args) == 2: self.file = args[1]
/home/runner/work/FFM/FFM/commands/stealth_commands.py#L95
def execute(self): if not check_command_existence("shred"): shell_exec(f"FN={self.file}") shell_exec( - 'dd bs=1k count="`du -sk "${FN}" | cut -f1`" if=/dev/urandom > "${FN}"; rm -f "${FN}"',print_output=True,) + 'dd bs=1k count="`du -sk "${FN}" | cut -f1`" if=/dev/urandom > "${FN}"; rm -f "${FN}"', + print_output=True, + ) write_str("{} deleted with dd/rm\r\n".format(self.file), LogLevel.ERROR) else: shell_exec("shred -uz {}".format(self.file)) write_str("{} deleted with shred\r\n".format(self.file), LogLevel.ERROR)
Run linters
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-python@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/