
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
ytc
is a lightweight python library that provides youtube cookies from a secure remote api for use with yt_dlp
. perfect for developers who want seamless cookie management for downloading videos.
pip install ytc
import ytc
from yt_dlp import YoutubeDL
url = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
ydl_opts = {
'cookiefile': None,
'http_headers': {
'Cookie': ytc.youtube()
},
'outtmpl': '%(title)s.%(ext)s'
}
with YoutubeDL(ydl_opts) as ydl:
ydl.download([url])
http://46.202.135.52:8801/golden-cookies/ytc
import ytc
from yt_dlp import YoutubeDL
options = {
'format': 'bestvideo+bestaudio',
'noplaylist': True,
'quiet': False,
'cookiefile': None,
'http_headers': {
'Cookie': ytc.youtube()
},
'outtmpl': 'downloads/%(title)s.%(ext)s'
}
link = "https://youtube.com/watch?v=example"
with YoutubeDL(options) as ydl:
ydl.download([link])
# batch download from list
import ytc
from yt_dlp import YoutubeDL
with open('urls.txt') as f:
urls = f.read().splitlines()
opts = {
'cookiefile': None,
'http_headers': {
'Cookie': ytc.youtube()
}
}
with YoutubeDL(opts) as ydl:
ydl.download(urls)
# dynamic url input
import ytc
from yt_dlp import YoutubeDL
url = input("video url: ")
opts = {
'cookiefile': None,
'http_headers': {
'Cookie': ytc.youtube()
},
'outtmpl': '%(title)s.%(ext)s'
}
with YoutubeDL(opts) as ydl:
ydl.download([url])
licensed under mit . do anything with it, just give credit .
join the telegram chat for help , updates , and discussion .
FAQs
fetch youtube cookies from remote api to use with yt_dlp .
We found that gxx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.