mirror of
https://github.com/Z4nzu/hackingtool
synced 2024-11-14 19:55:19 +00:00
Merge pull request #394 from cclauss/patch-4
Test install, run, uninstall
This commit is contained in:
commit
0232498f8f
17
.github/workflows/test_install.yml
vendored
17
.github/workflows/test_install.yml
vendored
@ -9,6 +9,15 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
TERM: "linux"
|
TERM: "linux"
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
commands:
|
||||||
|
# Enter hackingtool starting from the main menu with \n as the delimiter.
|
||||||
|
- "17\n0\n1\n\n99\n99\n99" # Install, run, update, update system, press ENTER to continue, back to main menu, quit
|
||||||
|
- "17\n0\n2\n\n99\n99\n99" # Install, run, update, update hackingtool, press ENTER to continue, back to main menu, quit
|
||||||
|
# - "17\n1\n1\n" # Install, run, uninstall, press ENTER to continue
|
||||||
|
- "99" # Install, run, quit
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
@ -19,9 +28,9 @@ jobs:
|
|||||||
- run: pwd && ls -hal
|
- run: pwd && ls -hal
|
||||||
- run: sudo ./install.sh 1
|
- run: sudo ./install.sh 1
|
||||||
- run: pwd && ls -hal
|
- run: pwd && ls -hal
|
||||||
# Typing "1" will allow us to manually enter a path.
|
# Typing "1" will allow us to manually enter the filepath to hackingtool.
|
||||||
# Provide a path to a writable directory: /home/runner/work/hackingtool/hackingtool
|
# Provide the filepath ${HOME}/work/hackingtool/hackingtool
|
||||||
# Typing "99" will quit hackingtool.
|
# Type the matrix.commands.
|
||||||
- run: echo -e "1\n/home/runner/work/hackingtool/hackingtool\n99\n" | hackingtool
|
- run: echo -e "1\n${HOME}/work/hackingtool/hackingtool\n${{ matrix.commands }}\n" | hackingtool
|
||||||
- run: pwd && ls -hal
|
- run: pwd && ls -hal
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# coding=utf-8
|
# coding=utf-8
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
from core import HackingTool
|
from core import HackingTool
|
||||||
@ -53,9 +54,8 @@ class UninstallTool(HackingTool):
|
|||||||
"sudo rm -rf /usr/share/doc/hackingtool/;"
|
"sudo rm -rf /usr/share/doc/hackingtool/;"
|
||||||
"cd /etc/;"
|
"cd /etc/;"
|
||||||
"sudo rm -rf /etc/hackingtool/;")
|
"sudo rm -rf /etc/hackingtool/;")
|
||||||
print("\nHackingtool Successfully Uninstalled..")
|
print("\nHackingtool Successfully Uninstalled... Goodbye.")
|
||||||
print("Happy Hacking..!!")
|
sys.exit()
|
||||||
sleep(1)
|
|
||||||
|
|
||||||
|
|
||||||
class ToolManager(HackingToolsCollection):
|
class ToolManager(HackingToolsCollection):
|
||||||
|
Loading…
Reference in New Issue
Block a user