wolfyflutter

61. ugoira.com [downloader] [pixiv]

Sep 7th, 2025 (edited)
177
0
Never
8
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 2.32 KB | Source Code | 0 0
  1. /*
  2.   base   : https://ugoira.com/
  3.   by     : wolep
  4.   req    : RennZero Official
  5.   note   : handdle buffer nya ya
  6.   update : 8 September 2025
  7. */
  8.  
  9. import fs from 'fs'
  10.  
  11. const ugoira = {
  12.   _baseUrl: 'https://ugoira.com',
  13.  
  14.   _getBuff: async function (url) {
  15.     try {
  16.       const headers = {
  17.         "referer": this._baseUrl + "/",
  18.       }
  19.       const r = await fetch(url, { headers })
  20.       if (!r.ok) throw Error('ror')
  21.       return Buffer.from(await r.arrayBuffer())
  22.     } catch (e) {
  23.       return null
  24.     }
  25.   },
  26.  
  27.   download: async function (url) {
  28.     // validation
  29.     const postId = url.match(/^ *(?:https:\/\/)?www.pixiv.net(?:\/en)?\/artworks\/(\d+) *$/)?.[1]
  30.     if (!postId) throw Error(`gagal menemukan match post id. pastikan url sudah benar`)
  31.  
  32.     // hit
  33.     const headers = {
  34.       "content-type": "application/json",
  35.     }
  36.     const body = JSON.stringify({ text: postId })
  37.     const r = await fetch("https://ugoira.com/api/illusts/queue", { headers, body, "method": "POST" })
  38.     if (!r.ok) throw Error(`${r.status} ${r.statusText}`)
  39.     const j = await r.json()
  40.  
  41.     // mp4 path checking
  42.     const mp4 = j?.data?.[0]?.preview?.mp4
  43.     if (!mp4) throw Error(`gagal mendapatkan url download mp4`)
  44.  
  45.     // download mp4 into buffer
  46.     const buff = await this._getBuff(mp4)
  47.     if (!buff) throw Error(`gagal mendownload mp4`)
  48.  
  49.     // return value
  50.     const result = {
  51.       bufferMp4: buff,
  52.       meta: j.data[0]
  53.     }
  54.  
  55.     return result
  56.   }
  57. }
  58.  
  59. // cara pakai
  60. ugoira.download('https://www.pixiv.net/en/artworks/89324061')
  61.   .then(data => {
  62.     // handle buffer
  63.     const path = './' + data.meta.id + '.mp4'
  64.     fs.writeFileSync(path, data.bufferMp4)
  65.     console.log('file saved!', path)
  66.   })
  67.   .catch(error => {
  68.     console.log(`error. ${error.message}`)
  69.   })
  70.  
  71.  
  72. /* output json
  73. {
  74.   "bufferMp4": bla bla bla bla...... ,
  75.   "meta": {
  76.     "id": 89324061,
  77.     "type": 2,
  78.     "title": "Pari bounce",
  79.     "author_name": "Kamuo",
  80.     "author_id": 41011921,
  81.     "preview": {
  82.       "cover": "https://i.ugoira.com/img-original/img/2021/04/22/23/03/30/89324061_ugoira0.jpg",
  83.       "mp4": "https://t-hk.ugoira.com/ugoira/89324061.mp4"
  84.     },
  85.     "width": 1600,
  86.     "height": 1600,
  87.     "nsfw": false,
  88.     "tags": [
  89.       "Ugoira",
  90.       "デフォルメ",
  91.       "かわいい"
  92.     ]
  93.   }
  94. }   */
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Dykallo
    26 min
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=fvogufnoxw
    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