Skip to content

Accounts Generator

Accounts Generator #1

Workflow file for this run

name: Accounts Generator
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
account:
description: 'Number of Accounts to be generated (default = 1)'
required: false
default: '1'
jobs:
GenerateKey:
runs-on: ubuntu-latest
steps:
- name: Generate accounts
run: |
ACCOUNT=${{ github.event.inputs.account }}
KEY=0
git clone https://github.com/rzc0d3r/ESET-KeyGen.git
cd ESET-KeyGen
sudo apt update
sudo apt install python3-pip
sudo pip install -r requirements.txt
#Initialise chrome driver
python3 main.py --chrome --only-update
if [[ (${ACCOUNT} != 0) && (${KEY} != 0) ]]
then
(seq 1 $((ACCOUNT)) | xargs -I {} -P $((ACCOUNT)) python3 main.py --chrome --account --skip-webdriver-menu) & (seq 1 $((KEY)) | xargs -I {} -P $((KEY)) python3 main.py --chrome --key --skip-webdriver-menu)
echo "Account:" >> $GITHUB_STEP_SUMMARY
cat ./*ACCOUNTS.txt >> $GITHUB_STEP_SUMMARY
echo -e "\nKey:" >> $GITHUB_STEP_SUMMARY
cat ./*KEYS.txt >> $GITHUB_STEP_SUMMARY
exit
fi
if [[ ${ACCOUNT} != 0 ]]
then
seq 1 $((ACCOUNT)) | xargs -I {} -P $((ACCOUNT)) python3 main.py --chrome --account --skip-webdriver-menu
echo -e "\nAccount:" >> $GITHUB_STEP_SUMMARY
cat ./*ACCOUNTS.txt >> $GITHUB_STEP_SUMMARY
fi
if [[ ${KEY} != 0 ]]
then
seq 1 $((KEY)) | xargs -I {} -P $((KEY)) python3 main.py --chrome --key --skip-webdriver-menu
echo -e "\nKey:" >> $GITHUB_STEP_SUMMARY
cat ./*KEYS.txt >> $GITHUB_STEP_SUMMARY
fi