Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
runescape-account-creator
Advanced tools
An implementation in JavaScript for Node.js that provides the ability to create accounts for the video game Old School RuneScape®.
Runescape Account Creator is an implementation in JavaScript for Node.js that provides the ability to create accounts for the video game RuneScape®.
Install via npm:
npm install runescape-account-creator
The request is Promise based therfore we
call .then()
in order to access the response once it has been recieved.
First we will build a new AccountCreator
instance with our 2Captcha API key
// Import the factory function for the AccountCreator
const { buildAccountCreator } = require('runescape-account-creator')
// Update the API key used to match your 2captcha.com API key
const twoCaptchaApiKey = 'YOUR_TWO_CAPTCHA_API_KEY'
const accountCreator = buildAccountCreator(twoCaptchaApiKey)
// Now we can start registering accounts!
accountCreator.register().then(response => {
// destructure the response
const { credentials, birthday } = response
console.log('We made a new account with these credentials:', credentials)
console.log('The birthday of the account is', birthday)
console.log('The User-Agent header we sent was:', response.meta.userAgent)
}).catch(error => {
console.error(error)
})
Since we are using Promises, we can make use of async/await if your JavaScript runtime allows for it, or you are using a transpiler that supports code generation for async/await.
// Fat-arrow function
const registerAccount = async creator => await creator.register()
// traditional async function
async function singleRegistration (accountCreator) {
return await accountCreator.register()
}
async function serialBatchRegistration (accountCreator) {
const accounts = []
for (let i = 1; i <= 10; i++) {
console.log('Registering account', i)
// this is where the syntax magic happens
const { credentials, birthday } = await accountCreator.register()
console.log(`Account was registered! ${credentials.email}:${credentials.password} with birthday ${birthday}`)
accounts.push(account)
}
return accounts
}
See examples.js for more examples.
It is possible to configure the registration/captcha configuration in a couple different ways.
This package automatically tries to use a .env
file via the
dotenv package. You can copy the
default configuration file by running:
cp node_modules/runescape-account-creator/.env.example .env
Or you can copy the contents of .env.example here
Take a look at the AccountCreator.register(options) documentation
Parameter | Type | Required | Notes |
---|---|---|---|
String | No | The email to use when creating the account. If none is provided, one will be generated. | |
password | String | No | The password to use when creating the account. If none is provided, one will be generated. |
birthday | Date | No | The birthday to use when creating the account. If none is provided, one will be generated. |
$ git clone https://github.com/Sphiinx/runescape-account-creator
$ cd runescape-account-creator
$ npm install
$ npm run lint
You can also generate the documentation by running the following command:
npm run docs
Which will run jsdoc and publish the generated assets to the docs/
directory.
FAQs
An implementation in JavaScript for Node.js that provides the ability to create accounts for the video game Old School RuneScape®.
The npm package runescape-account-creator receives a total of 8 weekly downloads. As such, runescape-account-creator popularity was classified as not popular.
We found that runescape-account-creator demonstrated a not healthy version release cadence and project activity because the last version was released 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.