
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Instal modul menggunakan npm:
npm install shannz-cf
cf.wafSession(url, proxy)Mengambil cookies dan headers yang diperlukan untuk melewati challenge WAF (seperti Cloudflare) pada URL target, memungkinkan request HTTP non-browser berikutnya.
| Parameter | Tipe | Diperlukan | Deskripsi |
|---|---|---|---|
url | string | Ya | URL yang dilindungi WAF. |
proxy | string | Tidak | Alamat proxy opsional (user:pass@host:port). |
Contoh:
const { shannz: cf } = require('shannz-cf');
async function getSession() {
try {
const session = await cf.wafSession("https://example.com/protected", "host:port");
console.log("Cookies:", session.cookies);
console.log("User-Agent:", session.headers['User-Agent']);
} catch (error) {
console.error("Gagal mendapatkan WAF Session:", error.message);
}
}
cf.turnstileMin(url, siteKey, proxy)Menyelesaikan challenge Cloudflare Turnstile menggunakan mode injeksi/minimum yang cepat. Mengembalikan token respons yang dapat diverifikasi di sisi server.
| Parameter | Tipe | Diperlukan | Deskripsi |
|---|---|---|---|
url | string | Ya | URL halaman yang menampung widget Turnstile. |
siteKey | string | Ya | Kunci situs (Site Key) dari widget Turnstile. |
proxy | string | Tidak | Alamat proxy opsional. |
Contoh:
const token = await cf.turnstileMin(
"https://forms.com/login",
"0x4AAAAAAAT-yE...", // Site Key
"host:port"
);
console.log("Token Turnstile Min:", token);
cf.turnstileMax(url, proxy)Menyelesaikan challenge Cloudflare Turnstile menggunakan mode maksimum (simulasi interaksi pengguna alami). Lebih andal pada kasus yang ketat. Mengembalikan token respons.
| Parameter | Tipe | Diperlukan | Deskripsi |
|---|---|---|---|
url | string | Ya | URL halaman yang menampung widget Turnstile. |
proxy | string | Tidak | Alamat proxy opsional. |
cf.source(url, proxy)Mengambil source code HTML yang sudah di-render oleh JavaScript dari URL target. Berguna untuk mengambil konten yang dimuat secara dinamis.
| Parameter | Tipe | Diperlukan | Deskripsi |
|---|---|---|---|
url | string | Ya | URL target. |
proxy | string | Tidak | Alamat proxy opsional. |
Contoh:
const htmlSource = await cf.getSource("https://spa-website.com/");
console.log("HTML Source:", htmlSource.substring(0, 200) + "...");
cf.stats()Mengambil statistik operasional internal dari Browser Service yang digunakan oleh API.
| Parameter | Tipe | Diperlukan | Deskripsi |
|---|---|---|---|
| Tidak ada | Mengembalikan data status dan statistik browser. |
Semua fungsi akan melempar Error jika:
success: false (misalnya, parameter hilang, atau solusi challenge gagal).Disarankan untuk selalu membungkus pemanggilan API dengan blok try...catch.
FAQs
To bypass cloudflare security
The npm package bycf receives a total of 2,138 weekly downloads. As such, bycf popularity was classified as popular.
We found that bycf 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 News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.