Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
An exclusive NodeJs only package built on top of IRCTC Website APIs to book train tickets, managing user profile faster and simpler from anywhere in the world
A package built on top of IRCTC Website APIs to book train tickets, managing user profile faster and simpler. Currently this package only works on NodeJs environment and we were not recommending this to use on browser or any other Javascript environment.
[!NOTE]
This irctc-api script for automating IRCTC ticket booking is created strictly for educational purposes. The code and its usage are intended to showcase irctc-api testing capabilities and best practices. Any attempt to use this script for unauthorized access or activities that violate IRCTC terms of service or legal regulations is strictly prohibited. The author(s) and associated entities are not responsible for any misuse or legal consequences resulting from the use of this script for any unauthorized activities.
To install the this package, simply type i or install irctc-api using the node package manager
npm install irctc-api
This Package uses viu, A rust module uses iterm image protocol for displaying images within System Terminal.
We use that for displaying captcha images on command line for login and bookings as to make your booking flow in a seamless way.
irctc-api
automatically installs viu
binary based on your os and processor architecture, If we could not find your viu binary related to your processor and os, you are required to install viu
through their standard installation.
Then provide viu
binary path in params as
{
"viu":"path/to/binary/viu | path/to/binary/viu.exe"
}
This Package exports a class named IRCTC
which contains three functions.
Other variables export
To send a request, you only need to import the IRCTC
.
// ES5 example
const { IRCTC } = require("irctc-api");
// ES6+ example
import { IRCTC } from "irctc-api";
The Code Examples are hosted at Github Repo - suryavaddiraju/irctc-api
To send a request, you:
// a client can be shared by different commands. But it is currently in development untill then use client seperately.
const client = new IRCTC({
// irctc_class_params
});
const params = {
// refer https://dev.vaddiraju.in/irctc-api/api_reference#book_input
};
const command = await client.book(params);
We recommend using await operator to wait for the promise returned by send operation as follows:
// async/await.
try {
const data = await client.book(params);
// process data.
} catch (error) {
// error handling.
} finally {
// finally.
}
Async-await is clean, concise, intuitive, easy to debug and has better error handling as compared to using Promise chains or callbacks.
Please use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
Any modifications will be overwritten the next time the irctc-api
package is updated. To contribute to the package you can check our contribution page.
This package is distributed under the Apache License, Version 2.0, see LICENSE for more information.
All Rights Reserved. © Vaddiraju Surya Teja, 2024
FAQs
An exclusive NodeJs only package built on top of IRCTC Website APIs to book train tickets, managing user profile faster and simpler from anywhere in the world
The npm package irctc-api receives a total of 20 weekly downloads. As such, irctc-api popularity was classified as not popular.
We found that irctc-api demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.