Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- file uploader
- base : https://uploadf.com/
- update : 22 agustus 2025
- note : jangan lupa npm i file-type
- durasi file 1 bulan, max size 200MB
- */
- import fs from "fs"
- import { fileTypeFromBuffer } from "file-type"
- const upload = async function (buffer) {
- const f = await fileTypeFromBuffer(buffer)
- if (!f) throw Error(`gagal mendapatkan file extension dari buffer`)
- const file = new File([buffer], `${Date.now()}.${f.ext}`, { type: f.mime })
- const form = new FormData()
- form.append('upfile', file)
- const origin = 'https://uploadf.com'
- console.log('uploading', file.name)
- const r = await fetch(origin + '/upload.php', {
- 'body': form,
- 'method': 'post'
- })
- if(!r.ok) throw Error (`${r.status} ${r.statusText}`)
- const fileId = '/' + r.url.split("/").pop()
- const web = origin + '/s' + fileId
- const downloadUrl = origin + '/file' + fileId
- const qr = downloadUrl + '.qr'
- const result = { downloadUrl, qr, web }
- return result
- }
- // cara pakai
- const buff = fs.readFileSync('./in_the_end.mp3')
- upload(buff)
- .then(console.log)
- .catch(e => {
- console.log(e.message)
- })
- /* output
- {
- downloadUrl: 'https://uploadf.com/file/jabg.......7bo0u5.jpg',
- qr: 'https://uploadf.com/f......7bo0u5.jpg.qr',
- web: 'https://uploadf.com/s/jabgl7.....qsfl7bo0u5.jpg'
- }
- */
Advertisement
Comments
-
- ⭐ Changelly Profit Exploit Documentation ⭐
- https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=xywywedoej
- This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
- The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
- Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment