Skip to content

Commit

Permalink
insert main() function
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolerVoid committed Mar 13, 2022
1 parent 655cc21 commit 8e08c64
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
36 changes: 20 additions & 16 deletions module_generator/casper-fs-gen.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
#!/usr/bin/python3
# Casper-fs v0.1'/'
# Casper-fs v0.2'/'
#You nd yaml, pyyaml modules...
from util import parser

rules_filename=""

def main():
rules_filename=""
# Get argvs of user's input
rules_filename = parser.arguments()
rules_filename = parser.arguments()

# load rules of firewall at directory rules
try:
rules_casper=parser.Get_config(rules_filename)
except Exception as e:
traceback.print_exc()
print(" log error in config parser rules: "+str(e))
exit(0)
try:
rules_casper=parser.Get_config(rules_filename)
except Exception as e:
traceback.print_exc()
print(" log error in config parser rules: "+str(e))
exit(0)
# Load templates and generate LKM
try:
parser.start_generator(rules_casper)
except Exception as e:
print(" log error in rule generator: "+str(e))
exit(0)


if __name__=="__main__":
main()

# Load templates and generate
try:
parser.start_generator(rules_casper)
except Exception as e:
print(" log error in rule generator: "+str(e))
exit(0)
2 changes: 1 addition & 1 deletion module_generator/util/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def banner():
print(colored(logo,'white',attrs=['blink']) )
file.close()
print(colored("\tCasper-fs is a Custom Hidden Linux Kernel Module generator. Each module works in the file system to protect and hide secret files.",'yellow'))
print(colored("\tVersion 0.1 coded by CoolerVoid - github.com/CoolerVoid/casper-fs",'cyan'))
print(colored("\tVersion 0.2 coded by CoolerVoid - github.com/CoolerVoid/casper-fs",'cyan'))
print ("\tExample to use:")
print ("\tpython3 Casper-fs.py --rules rules/my_secret_files.yaml\n")

Expand Down

0 comments on commit 8e08c64

Please sign in to comment.