
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
bun-mtproto
Advanced tools
Status: WIP
basic usage:
import MTProto from "https://deno.land/x/mtproto/mod.ts";
import factory from "https://deno.land/x/mtproto/transport/connection/deno-tcp.ts";
import Abridged from "https://deno.land/x/mtproto/transport/codec/abridged.ts";
import JsonDB from "https://deno.land/x/mtproto/storage/jsondb.ts";
import { sendCode } from "https://deno.land/x/mtproto/auth/user.ts";
import {
Confirm,
Input,
Secret,
} from "https://deno.land/x/cliffy@v0.22.2/prompt/mod.ts";
const db = new JsonDB("diag_mod.json");
const proto = new MTProto({
api_id: 0, // your api id
api_hash: "YOUR_API_HASH",
environment: {
app_version: "8.6.1",
device_model: "Unknown",
system_version: "1.0.0",
},
ipv6_policy: "ipv4",
transport_factory: factory(() => new Abridged()),
storage: db,
});
await proto.init();
const rpc = await proto.rpc();
// TODO: check if user is logged
await sendCode(proto, {
async askCode() {
return await Input.prompt("Phone code");
},
async askPassword(hint) {
return await Secret.prompt(
"2FA Password" + (hint ? `(hint: ${hint})` : ""),
);
},
async askSignUp() {
if (await Confirm.prompt("Sign up")) {
const first_name = await Input.prompt("First name");
const last_name = await Input.prompt("Last name");
return { first_name, last_name };
}
},
}, await Input.prompt("Phone number"));
FAQs
Status: WIP
We found that bun-mtproto demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.