Skip to content

Instantly share code, notes, and snippets.

View knockify's full-sized avatar
💭
Just keep coding

knockify

💭
Just keep coding
View GitHub Profile
@knockify
knockify / security_check.py
Last active September 30, 2021 08:09
Security Check
def security_check():
import random
number = random.randint(100000,999999)
print(f"If you are human, please enter this below:{number}")
human = int(input("ENTER: "))
if human != number:
exit("Invalid number! guess u arent a human lmao")
security_check()
@knockify
knockify / bitcoin_price.py
Created September 30, 2021 07:54
Gets the price of bitcoin.
import requests
import json
def get(currency="GBP"):
bitcoin = requests.get(f"https://api.coinbase.com/v2/prices/spot?currency={currency}").json()["data"]
bitcoin_2 = str(json.loads(bitcoin["amount"]))
return f"Bitcoin Price: {bitcoin_2}"
@knockify
knockify / keep_alive.py
Created September 30, 2021 07:56
Keep Alive
from flask import Flask
from threading import Thread
app = Flask('')
@app.route('/')
def home():
return "Keep Alive Is On!"
def run():
import requests
def bypasslink(x):
if requests.get("https://bypass.bot.nu/bypass2?url=" + x).status_code != 200:
return 0
else:
z = requests.get("https://bypass.bot.nu/bypass2?url=" + x).text
y = json.loads(z)
return y['destination']
def restart():
import os
#os.system("pkill -f keep_alive.py")
os.system("python main.py")
@knockify
knockify / annoy.py
Created September 30, 2021 08:04
Annoy Discord.py
if message.content.startswith("*annoy"):
times = message.content[7:]
for i in range(5):
await message.channel.send(times)
import discord
client = discord.Client()
@client.event
async def on_ready():
print(f'{client.user} has connected to Discord!')
@client.event
async def on_message(message):
if message.author == client.user:
//Before you start typing open your developer console and paste the following script
//Now pressing any key will result in to correct key press untill you reach next space key.
//I made the user push space to move further, so that someone viewing your typing will think you are not faking.
//warning: Site detects the WPM above 100 and asks you to do a captcha test.
var jq = document.createElement('script');
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// ... give time for script to load, then type.
jQuery.noConflict();
from flask import Flask
app = Flask('app')
@app.route('/')
def hello_world():
return 'Hello, World!'
app.run(host='0.0.0.0', port=8080)
import random
a = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","0","1","2","3","4","5","6","7","8","9"]
p = ""
for i in range(int(input("How long would you like your password to be? : "))):
n = random.randint(0,61)
p = p + a[n]
print(p)