Skip to content

Commit

Permalink
Use powershell on Windows + use --repeat for multiple keys
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaGarg8 committed Dec 15, 2024
1 parent d1050c2 commit 7689028
Showing 1 changed file with 31 additions and 32 deletions.
63 changes: 31 additions & 32 deletions .github/workflows/eset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,20 @@ jobs:
pip install -r requirements.txt
if [[ ${ACCOUNT} -ne 0 && ${KEY} -ne 0 ]]; then
seq 1 ${ACCOUNT} | xargs -I {} -P ${ACCOUNT} python3 main.py --chrome --account --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar &
seq 1 ${KEY} | xargs -I {} -P ${KEY} python3 main.py --chrome ${KEY_TYPE} --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar
wait
python3 main.py --chrome --account --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar --repeat ${ACCOUNT}
python3 main.py --chrome ${KEY_TYPE} --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar --repeat ${KEY}
echo "Account:" >> $GITHUB_STEP_SUMMARY
cat ./*ACCOUNTS.txt >> $GITHUB_STEP_SUMMARY
echo -e "\nKey:" >> $GITHUB_STEP_SUMMARY
cat ./*KEYS.txt >> $GITHUB_STEP_SUMMARY
elif [[ ${ACCOUNT} -ne 0 ]]; then
seq 1 ${ACCOUNT} | xargs -I {} -P ${ACCOUNT} python3 main.py --chrome --account --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar
python3 main.py --chrome --account --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar --repeat ${ACCOUNT}
echo -e "\nAccount:" >> $GITHUB_STEP_SUMMARY
cat ./*ACCOUNTS.txt >> $GITHUB_STEP_SUMMARY
elif [[ ${KEY} -ne 0 ]]; then
seq 1 ${KEY} | xargs -I {} -P ${KEY} python3 main.py --chrome ${KEY_TYPE} --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar
python3 main.py --chrome ${KEY_TYPE} --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar --repeat ${KEY}
echo -e "\nKey:" >> $GITHUB_STEP_SUMMARY
cat ./*KEYS.txt >> $GITHUB_STEP_SUMMARY
fi
macOS:
runs-on: macos-latest
Expand All @@ -100,19 +100,18 @@ jobs:
pip install -r requirements.txt
if [[ ${ACCOUNT} -ne 0 && ${KEY} -ne 0 ]]; then
seq 1 ${ACCOUNT} | xargs -I {} -P ${ACCOUNT} python3 main.py --chrome --account --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar &
seq 1 ${KEY} | xargs -I {} -P ${KEY} python3 main.py --chrome ${KEY_TYPE} --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar
wait
python3 main.py --chrome --account --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar --repeat ${ACCOUNT}
python3 main.py --chrome ${KEY_TYPE} --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar --repeat ${KEY}
echo "Account:" >> $GITHUB_STEP_SUMMARY
cat ./*ACCOUNTS.txt >> $GITHUB_STEP_SUMMARY
echo -e "\nKey:" >> $GITHUB_STEP_SUMMARY
cat ./*KEYS.txt >> $GITHUB_STEP_SUMMARY
elif [[ ${ACCOUNT} -ne 0 ]]; then
seq 1 ${ACCOUNT} | xargs -I {} -P ${ACCOUNT} python3 main.py --chrome --account --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar
python3 main.py --chrome --account --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar --repeat ${ACCOUNT}
echo -e "\nAccount:" >> $GITHUB_STEP_SUMMARY
cat ./*ACCOUNTS.txt >> $GITHUB_STEP_SUMMARY
elif [[ ${KEY} -ne 0 ]]; then
seq 1 ${KEY} | xargs -I {} -P ${KEY} python3 main.py --chrome ${KEY_TYPE} --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar
python3 main.py --chrome ${KEY_TYPE} --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar --repeat ${KEY}
echo -e "\nKey:" >> $GITHUB_STEP_SUMMARY
cat ./*KEYS.txt >> $GITHUB_STEP_SUMMARY
fi
Expand All @@ -122,32 +121,32 @@ jobs:
- name: Generate key
if: github.event.inputs.os == 'Windows'
run: |
ACCOUNT=${{ github.event.inputs.account }}
KEY=${{ github.event.inputs.key }}
MAIL=${{ github.event.inputs.mail }}
KEY_TYPE=${{ github.event.inputs.key_type }}
$ACCOUNT="${{ github.event.inputs.account }}"
$KEY="${{ github.event.inputs.key }}"
$MAIL="${{ github.event.inputs.mail }}"
$KEY_TYPE="${{ github.event.inputs.key_type }}"
git clone https://github.com/rzc0d3r/ESET-KeyGen.git
cd ESET-KeyGen
# Setup dependencies
pip install -r requirements.txt
if [[ ${ACCOUNT} -ne 0 && ${KEY} -ne 0 ]]; then
seq 1 ${ACCOUNT} | xargs -I {} -P ${ACCOUNT} python3 main.py --chrome --account --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar &
seq 1 ${KEY} | xargs -I {} -P ${KEY} python3 main.py --chrome ${KEY_TYPE} --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar
wait
echo "Account:" >> $GITHUB_STEP_SUMMARY
cat ./*ACCOUNTS.txt >> $GITHUB_STEP_SUMMARY
echo -e "\nKey:" >> $GITHUB_STEP_SUMMARY
cat ./*KEYS.txt >> $GITHUB_STEP_SUMMARY
elif [[ ${ACCOUNT} -ne 0 ]]; then
seq 1 ${ACCOUNT} | xargs -I {} -P ${ACCOUNT} python3 main.py --chrome --account --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar
echo -e "\nAccount:" >> $GITHUB_STEP_SUMMARY
cat ./*ACCOUNTS.txt >> $GITHUB_STEP_SUMMARY
elif [[ ${KEY} -ne 0 ]]; then
seq 1 ${KEY} | xargs -I {} -P ${KEY} python3 main.py --chrome ${KEY_TYPE} --email-api ${MAIL} --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar
echo -e "\nKey:" >> $GITHUB_STEP_SUMMARY
cat ./*KEYS.txt >> $GITHUB_STEP_SUMMARY
fi
shell: bash
if ($ACCOUNT -ne 0 -and $KEY -ne 0) {
python3 main.py --chrome --account --email-api $MAIL --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar --repeat $ACCOUNT
python3 main.py --chrome $KEY_TYPE --email-api $MAIL --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar --repeat $KEY
echo "Account:" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
Get-Content -Path ./*ACCOUNTS.txt | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
echo "`nKey:" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
Get-Content -Path ./*KEYS.txt | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
}
elseif ($ACCOUNT -ne 0) {
python3 main.py --chrome --account --email-api $MAIL --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar --repeat $ACCOUNT
echo "`nAccount:" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
Get-Content -Path ./*ACCOUNTS.txt | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
}
elseif ($KEY -ne 0) {
python3 main.py --chrome $KEY_TYPE --email-api $MAIL --skip-webdriver-menu --skip-update-check --no-logo --disable-progress-bar --repeat $KEY
echo "`nKey:" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
Get-Content -Path ./*KEYS.txt | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
}

0 comments on commit 7689028

Please sign in to comment.