wolfyflutter

66. pindown.io [pinterest] [downloader] [video] [image]

Nov 1st, 2025 (edited)
184
0
Never
8
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 2.84 KB | Source Code | 0 0
  1. /*
  2.   nama   : pinterest video download
  3.   base   : https://pindown.io
  4.   by     : wolep
  5.   update : 1 November 2025, 21:00 wita
  6.   node   : v25.0.0
  7.   note   : gak ada
  8.   module : esm (tested) / cjs (gak tau coba test yah :v)
  9. */
  10.  
  11. const pint = {
  12.     _static: Object.freeze({
  13.         displayLog: true, //set false untuk silent log
  14.         taskName: '[pint skrep]',
  15.         baseUrl: 'https://pindown.io',
  16.         baseHeaders: {
  17.             'accept-encoding': 'gzip, deflate, br, zstd'
  18.         }
  19.     }),
  20.  
  21.     log: function (message) {
  22.         if(!this._static.displayLog) return
  23.         console.log(this._static.taskName + ' ' + message)
  24.     },
  25.  
  26.     getCookieAndToken: async function () {
  27.         this.log('mencoba ambil kuki dan hidden value')
  28.         const r = await fetch(this._static.baseUrl, {
  29.             headers: this._static.baseHeaders
  30.         })
  31.         if (!r.ok) throw Error(`${r.status} ${r.statusText || '(unknown)'} di fungsi getCookieAndToken`)
  32.         const html = await r.text()
  33.         const cookie = r.headers.getSetCookie().map(kuki => kuki.split(';')[0]).join('; ')
  34.         if (!cookie) throw Error('gagal mendapatkan kuki')
  35.         const hidden = html.match(/<input name="(?<name>.+?)" type="hidden" value="(?<value>.+?)"/)?.groups
  36.         if (!hidden) throw Error('gagal mendapatkan hidden value')
  37.         return { cookie, hidden }
  38.     },
  39.  
  40.     downloadVideo: async function (pinterestUrl) {
  41.         const { cookie, hidden } = await this.getCookieAndToken()
  42.  
  43.         this.log('mencoba mendapatkan url download')
  44.         const body = new FormData()
  45.         body.append('url', pinterestUrl)
  46.         body.append(hidden.name, hidden.value)
  47.  
  48.         const headers = {
  49.             cookie,
  50.             ...this._static.baseHeaders
  51.         }
  52.  
  53.         const path = '/action'
  54.         const r = await fetch(this._static.baseUrl + path, {
  55.             headers,
  56.             body,
  57.             'method': 'post'
  58.         })
  59.         if (!r.ok) throw Error(`${r.status} ${r.statusText || '(unknown)'} di fungsi download`)
  60.  
  61.         const html = await r.text()
  62.         const vidMatch = html.match(/id='vid' src='(.+?)'/)?.[1]
  63.         const videoUrl = eval(`'${vidMatch}'`)
  64.         if(videoUrl === 'undefined') throw Error (`gagal mendapatkan video url. pastikan url pinterest berisi video`)
  65.  
  66.         const thumbMatch = html.match(/video poster='(.+?)'/)?.[1]
  67.         const thumbnailUrl = eval(`'${thumbMatch}'`)
  68.        
  69.         this.log('sukses')
  70.         return ({videoUrl, thumbnailUrl })
  71.     }
  72. }
  73.  
  74. // cara pakai
  75. pint.downloadVideo('https://www.pinterest.com/pin/614811786672974800/')
  76. .then(console.log)
  77. .catch(err => console.log(err.message))
  78.  
  79.  
  80. /*  output
  81. {
  82.   thumbnailUrl: 'https://i.pinimg.com/videos/thum........0000000.jpg',
  83.   videoUrl: 'https://v1.pinimg.com/videos......13f5a6bf77_720w.mp4'
  84. }
  85. */
  86.  
  87.  
  88. // export default pint
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Dumorep
    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=bnfzoqevat
    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