Skip to content

Commit

Permalink
Update PE_main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MMJohar-IT20083496 committed Nov 2, 2023
1 parent ccd9ec6 commit 6b2b2ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PE_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,6 @@ def extract_infos(fpath):

#prediciting if the PE is malicious or not based on the extracted features
res= clf.predict([pe_features])[0]
print ('The file %s is %s' % (os.path.basename(sys.argv[0]),['malicious', 'legitimate'][res]))
print ('The file %s is %s' % (os.path.basename(sys.argv[1]),['malicious', 'legitimate'][res]))

sys.exit(res)

0 comments on commit 6b2b2ae

Please sign in to comment.