Skip to content

Instantly share code, notes, and snippets.

View puppis42's full-sized avatar
🎃
I may be slow to respond.

puppis42

🎃
I may be slow to respond.
View GitHub Profile
@puppis42
puppis42 / agmain.py
Last active June 21, 2020 21:25
Coin tool for Agar.io game.
#!/usr/bin/python3
from selenium import webdriver
import time
from selenium.webdriver.common.keys import Keys
driver_path = 'C:\\webdrivers\\chromedriver.exe'
driver = webdriver.Chrome(driver_path)
driver.get("https://agar.io/")
# http://www.gutenberg.org/files/10/10-0.txt
import requests
headers = {
'User-Agent': 'My User Agent 1.0'
}
r = requests.get("http://www.gutenberg.org/files/10/10-0.txt", headers=headers)
import rotatescreen
import time
screen = rotatescreen.get_primary_display()
for i in range(100):
time.sleep(1)
screen.rotate_to(i * 90 % 360)
# Styles:
# 0 : OK
# 1 : OK | Cancel
# 2 : Abort | Retry | Ignore
# 3 : Yes | No | Cancel
# 4 : Yes | No
# 5 : Retry | Cancel
# 6 : Cancel | Try Again | Continue
import ctypes
package main
import (
"bytes"
"fmt"
"net/http"
)
func getData(url string) string {
response, _ := http.Get(url)
import win32clipboard
# test11111111
# test22222222
# test33333333
def clipText():
try:
win32clipboard.OpenClipboard()
@puppis42
puppis42 / ProtectProcess.cpp
Created May 26, 2023 17:18
Block terminate current process from unprivileged process
#include <Windows.h>
#include "aclapi.h"
#include <chrono>
#include <thread>
DWORD ProtectProcess(void)
{
HANDLE hProcess = GetCurrentProcess();
PACL pEmptyDacl;
DWORD dwErr;
// MicMuteToggle.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "windows.h"
#include "mmdeviceapi.h"
#include "mmsystem.h"
#include "endpointvolume.h"
#include "MicMuteToggle.h"
package main
import (
"fmt"
"os"
"github.com/chzyer/readline"
"strings"
"crypto/aes"
"crypto/cipher"
"io/ioutil"
package main
import (
"crypto/tls"
"image/png"
"os"
"github.com/kbinani/screenshot"
"gopkg.in/gomail.v2"
)