Popular Post Byron Marroquin Posted November 10, 2017 Popular Post Report Share Posted November 10, 2017 hola amigos estoy colocanto el antihack.py pues todo bien, el problema es que me borra archivos de las lib del cliente las cuales no estan definidas como archivos peligrosos he igual me las borra. seria tan amables de corregir mela o pormenor decirme donde esta el fallo porfabor. syserr, pues alli esta los archivos que me borra y no estan definidos como maliciosos. Debes iniciar sesión para ver el contenido del enlace en esta publicación. Debes iniciar sesión para ver el contenido del enlace en esta publicación. Metin2Brasil, Dominicanxd, brianman and 26 others 29 Quote Link to comment Share on other sites More sharing options...
Byron Marroquin Posted November 11, 2017 Author Report Share Posted November 11, 2017 up Quote Link to comment Share on other sites More sharing options...
Orange Metin Posted November 11, 2017 Report Share Posted November 11, 2017 Hola. def Pack_1(): Whitelist = ['__future__.bat','copy_reg.bat','linecache.bat','ntpath.bat','os.bat','site.bat','stat.bat','string.bat','traceback.bat','types.bat','UserDict.bat'] path =('lib') k = os.listdir(path) if k != Whitelist: for item in k: if not item in Whitelist: f=open("syserr.txt", "a") nombre="%s%s" % (item[0].upper(), item[1:]) f.write("[ANTI-HACK3]Se ha detectado un archivo mal intencionado (se ha eliminado %s)\n" % nombre) f.close() #os._exit(0) os.remove("lib///"+ str(item)) En Whitelist debes agregar todos los archivos que no son amenazas, pues está borrando todos los archivos que no están en la whitelist, así deberías ir añadiendo: Whitelist = ['__future__.bat','copy_reg.bat','linecache.bat','ntpath.bat','os.bat','site.bat','stat.bat','string.bat','traceback.bat','types.bat','UserDict.bat','Aifc.pyc','Airmir.pyc','Antigravity.pyc'] Quote Link to comment Share on other sites More sharing options...
Byron Marroquin Posted November 11, 2017 Author Report Share Posted November 11, 2017 Gracias lo probare , y en verdad gracias por contestar ahora confirmo si se me ha arreglado Quote Link to comment Share on other sites More sharing options...
drakulaura Posted March 16, 2020 Report Share Posted March 16, 2020 gracias muy interesante Quote Link to comment Share on other sites More sharing options...
Juan Manuel Zapata Posted April 18, 2020 Report Share Posted April 18, 2020 Quote Link to comment Share on other sites More sharing options...
blackcat Posted May 31, 2020 Report Share Posted May 31, 2020 good idea Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.