
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
A Python package to interact with the unofficial API of PDisk.pro.
To install the package, you can use pip:
pip install pdisk
To use the package, you must first create an instance of the Pdisk class, passing your API key as a parameter:
from pdisk import Pdisk
api_key = "YOUR_API_KEY_HERE"
pdisk = Pdisk(api_key)
You can retrieve your account info and stats using the following methods:
account_info = await pdisk.account_info()
print(account_info.email, account_info.balance, account_info.storage_used)
account_stats = await pdisk.account_stats()
for stat in account_stats:
print(f"{stat.profit_total} : {stat.downloads} : {stat.refs}")
You can upload files using the following methods:
# Upload a file from local storage
responses = await pdisk.upload_file("/path/to/file")
for response in responses:
print(response)
# Upload a remote file
responses = await pdisk.upload_remote_file("https://example.com/file.mp4", folder_id=12345)
for response in responses:
print(response)
You can check the upload status of a file using the following method:
file_code = "FILE_CODE"
status = await pdisk.check_upload_status(file_code)
print(status)
You can retrieve information about a file using the following method:
file_code = "FILE_CODE"
file_info = await pdisk.file_info(file_code)
for info in file_info:
print(info)
You can also retrieve a list of files using the following method:
files = await pdisk.get_file_list(page=1, per_page=20)
for file in files:
print(file)
Check Documentaion For More ... comming soon ...
This project is licensed under the MIT License (c) 2023 kalanakt.
FAQs
An Unofficial Asynchronous Python version of pdisk API wrapper
We found that img-captcha 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.
Security Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.