Accounts Generator #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |