Apr-26-2017, 03:02 PM
(This post was last modified: Apr-26-2017, 03:22 PM by sparkz_alot.)
my question here:This is a basic av script in py3
>my os is windows 7 -32
>my python ver is 3.6
>i uses the standard python shell
>when i tried to run the script,it worked but when i typed the filename to scan it showed this error
>i typed in "C:\windows
>my os is windows 7 -32
>my python ver is 3.6
>i uses the standard python shell
>when i tried to run the script,it worked but when i typed the filename to scan it showed this error
>i typed in "C:\windows
Error:SyntaxError: unexpected character after line continuation character
def scan(pathname, signatures, depth): for item in os.listdir(pathname) and depth > 0: n = os.path.join(pathname, item) try: scan(n, signatures, depth-1) except: f = open(n, 'r') s = f.read() for virus in signatures: if s.find(signatures[virus]) > 0: print('{}, found virus {}'.format(n,virus)) f.close()>Hope you guys will help me