Skip to content

Instantly share code, notes, and snippets.

View MayankFawkes's full-sized avatar
🎓
Open to work on github projects

Mayank Gupta MayankFawkes

🎓
Open to work on github projects
View GitHub Profile
@MayankFawkes
MayankFawkes / sources.list
Created August 6, 2020 03:13
Ubuntu 20.04 LTS (ARM64) (Focal Fossa) -- Full sources.list
deb http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-security main restricted universe multiverse
@MayankFawkes
MayankFawkes / sources.list
Created August 6, 2020 03:10
Ubuntu 20.04 LTS (Focal Fossa) -- Full sources.list
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
@MayankFawkes
MayankFawkes / FileServer.py
Last active August 5, 2020 18:19
Simple Python Socket | TCP File Sharing Server | python3 FileServer.py server/client 127.0.0.1 4545
'''
Simple file sharing server
'''
import glob, os, sys
import socket, json
import threading
import select
'''
Credit : https://temp-mail.io/en
'''
__author__='Mayank Gupta'
import requests
from time import sleep
class TempMail(object):
def __init__(self):
self.Handle()
def Handle(self):
@MayankFawkes
MayankFawkes / PornServer.py
Last active August 13, 2024 08:15
Its a clone of xnxx.com
# -*- coding: utf-8 -*-
__author__ = 'Mayank Gupta'
__version__ = '1.0P1'
__license__ = 'License :: MIT License'
import socket
import threading,ssl
import re
class porn():
import requests,re
pinid="116671446577537458"
html=requests.get("https://www.pinterest.com/pin/{}/".format(pinid)).text
ok=str(re.findall('<script id="initial-state" type="application/json">(.*?)</script>',html)[0])
data=["https://i.pinimg.com/originals/"+n for n in re.findall('"url":"https://i.pinimg.com/originals/(.*?)"',ok)][0]
print(data)
import requests,re
pinid="116671446577537458"
print(["https://i.pinimg.com/originals/"+n for n in re.findall('"url":"https://i.pinimg.com/originals/(.*?)"',str(re.findall('<script id="initial-state" type="application/json">(.*?)</script>',requests.get("https://www.pinterest.com/pin/{}/".format(pinid)).text)[0]))][0])
import time
import random
import ctypes
import platform
if platform.system() == 'Windows':
kernel32 = ctypes.windll.kernel32
kernel32.SetConsoleMode(kernel32.GetStdHandle(-11), 7)
col=[30,31,32,33,34,35,36,37,38,39,90,91,92,93,94,95,96,97]
while True:
print('\033[{}m{}\033[0m'.format(random.choice(col),time.ctime()),end="\r")
#!/usr/bin/env python
import requests
def upload(filename):
URL = "http://api.anonfile.com/upload"
with open(filename) as f:
r = requests.post(url=URL, files={'file': f})
print(r.json())
def info(id):
URL="https://api.anonfile.com/v2/file/{id}/info".format(id=id)
r = requests.get(url=URL)
@MayankFawkes
MayankFawkes / leetcode.py
Created October 29, 2019 08:24
Run your code somewhere else.
code='''
import hashlib
result = hashlib.sha256(b"Password")
print("The byte equivalent of hash is : ", end ="")
print(result.hexdigest())
'''
import requests
from time import sleep
data={"lang":"python3","typed_code":str(code[1:-1].replace('"','\"').replace("'","\'")),"data_input":"[1, 2, 3]"}
url="https://leetcode.com/playground/api/runcode"