forked from CoolerVoid/casper-fs
-
Notifications
You must be signed in to change notification settings - Fork 1
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
CoolerVoid
committed
Mar 13, 2022
1 parent
655cc21
commit 8e08c64
Showing
2 changed files
with
21 additions
and
17 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -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) |
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