1.3.1 • Published 8 months ago

penaplast3104-sms-bomber v1.3.1

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

penaplast3104-sms-bomber for nodejs

A simple SMS bomber package for automated testing of SMS service by bombarding with messages. Initially, the configuration has sites for Russian phone numbers. You can change this in the configuration. Use responsibly and only for legitimate purposes, with consent.

How to install

yarn add penaplast3104-sms-bomber

How to use

javascript

const { startBombing } = require('penaplast3104-sms-bomber');

startBombing({ 
    phoneNumber: '99999999999',
    times: 1,
    options?: [...flags],
    sites?: [...sites],
    onBobmingStart?: ({ phoneNumber, times}) => void,
    onBobmingFinish?: ({ phoneNumber, times}) => void,
});

You can add an array of your sites to the sites using the example from the configuration item.

bash

node start.js <phoneNumber> <times> <...--flags>

Replace with the target phone number and with the number of attempts.

Flags

--debug // includes logs and launch a "headful" version of Chrome
--without-default-sites // do not use sites installed in the package. ONLY FOR use as an NPM package. For command line edit config in ./constants/sites.js

Configuration

You can configure additional sites by editing the ./constants/sites.js file.

example:

const object = {
    url: string, // site url, It is advisable to search for unpopular sites, without robot detectors
    options?: {
        withoutFirstNumber?: boolean, // for inputs where the region code is initially set
    },
    queue: Array<{
        selector: string, // html element selector
        action: 'click/type', // page action
        isNumber?: boolean, // if this parameter is true, the input is entered target phone nubmer, type action
        value?: string, // value for nonIsNumber inputs, type action
        delay?: number, // delay before action
        isOptional?: boolean, // for optional steps, if the selector is not found, the step will be skipped without error
    }>
}
1.2.6

8 months ago

1.2.5

8 months ago

1.3.1

8 months ago

1.3.0

8 months ago

1.2.0

9 months ago

1.1.9

9 months ago

1.1.8

9 months ago

1.1.7

9 months ago

1.2.4

9 months ago

1.2.3

9 months ago

1.2.2

9 months ago

1.2.1

9 months ago

1.1.6

9 months ago

1.1.5

9 months ago

1.1.4

9 months ago

1.1.3

9 months ago

1.1.2

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

10 months ago