wolfyflutter

57. uploadf.com [file uploader]

Aug 21st, 2025 (edited)
258
0
Never
8
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 1.39 KB | Source Code | 0 0
  1. /*
  2.     file uploader
  3.     base : https://uploadf.com/
  4.     update : 22 agustus 2025
  5.     note : jangan lupa npm i file-type
  6.     durasi file 1 bulan, max size 200MB
  7. */
  8.  
  9. import fs from "fs"
  10. import { fileTypeFromBuffer } from "file-type"
  11.  
  12. const upload = async function (buffer) {
  13.     const f = await fileTypeFromBuffer(buffer)
  14.     if (!f) throw Error(`gagal mendapatkan file extension dari buffer`)
  15.     const file = new File([buffer], `${Date.now()}.${f.ext}`, { type: f.mime })
  16.  
  17.     const form = new FormData()
  18.     form.append('upfile', file)
  19.  
  20.     const origin = 'https://uploadf.com'
  21.  
  22.     console.log('uploading', file.name)
  23.     const r = await fetch(origin + '/upload.php', {
  24.         'body': form,
  25.         'method': 'post'
  26.     })
  27.     if(!r.ok) throw Error (`${r.status} ${r.statusText}`)
  28.  
  29.     const fileId = '/' + r.url.split("/").pop()
  30.     const web = origin + '/s' + fileId
  31.     const downloadUrl = origin + '/file' + fileId
  32.     const qr = downloadUrl + '.qr'
  33.  
  34.     const result = { downloadUrl, qr, web }
  35.  
  36.     return result
  37. }
  38.  
  39.  
  40. // cara pakai
  41. const buff = fs.readFileSync('./in_the_end.mp3')
  42. upload(buff)
  43.     .then(console.log)
  44.     .catch(e => {
  45.         console.log(e.message)
  46.     })
  47.  
  48. /* output
  49. {
  50.   downloadUrl: 'https://uploadf.com/file/jabg.......7bo0u5.jpg',
  51.   qr: 'https://uploadf.com/f......7bo0u5.jpg.qr',
  52.   web: 'https://uploadf.com/s/jabgl7.....qsfl7bo0u5.jpg'
  53. }
  54. */
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Zomexci
    7 hours
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=xywywedoej
    4.  
    5. 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.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment