Account and Key Generator #205
This file contains hidden or 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: Account and Key Generator | |
on: | |
# schedule: #if need schedule | |
# - cron: "0 */2 * * *" | |
workflow_dispatch: | |
inputs: | |
account: | |
description: 'Number of Accounts to be generated (default = 0)' | |
required: false | |
default: '0' | |
type: string | |
key: | |
description: 'Number of Keys to be generated (default = 1)' | |
required: false | |
default: '1' | |
type: string | |
mail: | |
description: 'Choose the mail provider to generate license' | |
required: true | |
type: choice | |
options: | |
- 1secmail | |
- guerrillamail | |
- developermail | |
- mailticking | |
- fakemail | |
- inboxes | |
- incognitomail | |
- emailfake | |
default: emailfake | |
key_type: | |
description: 'Modes of operation' | |
required: true | |
type: choice | |
options: | |
- --key | |
- --small-business-key | |
default: --key | |
os: | |
description: 'Operating System of runner (Linux, macOS, Windows)' | |
required: true | |
type: choice | |
options: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
default: windows-latest | |
branch: | |
description: "Repository branch (don't touch it if you don't know what it is!!!)" | |
required: false | |
type: choice | |
options: | |
- main | |
- test | |
default: main | |
jobs: | |
generate-account-and-key: | |
runs-on: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.os || 'windows-latest' }} #if fallback then | |
steps: | |
- name: Set Variables | |
id: vars | |
shell: bash | |
run: | | |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then | |
echo "account=${{ github.event.inputs.account }}" >> $GITHUB_OUTPUT | |
echo "key=${{ github.event.inputs.key }}" >> $GITHUB_OUTPUT | |
echo "mail=${{ github.event.inputs.mail }}" >> $GITHUB_OUTPUT | |
echo "key_type=${{ github.event.inputs.key_type }}" >> $GITHUB_OUTPUT | |
echo "branch=${{ github.event.inputs.branch }}" >> $GITHUB_OUTPUT | |
else #if fallback then | |
echo "account=0" >> $GITHUB_OUTPUT | |
echo "key=1" >> $GITHUB_OUTPUT | |
echo "mail=emailfake" >> $GITHUB_OUTPUT | |
echo "key_type=--key" >> $GITHUB_OUTPUT | |
echo "branch=main" >> $GITHUB_OUTPUT | |
fi | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Clone Repository | |
run: git clone -b "${{ steps.vars.outputs.branch }}" https://github.com/rzc0d3r/ESET-KeyGen.git | |
- name: Setup & Run Script (Linux/macOS) | |
if: runner.os != 'Windows' | |
shell: bash | |
run: | | |
cd ESET-KeyGen | |
if [[ "$RUNNER_OS" == "macOS" ]]; then | |
brew install [email protected] || true | |
else | |
sudo apt update | |
sudo apt install -y python3-pip python3-venv | |
fi | |
python3 -m venv venv | |
source venv/bin/activate | |
pip install -r requirements.txt | |
ACCOUNT="${{ steps.vars.outputs.account }}" | |
KEY="${{ steps.vars.outputs.key }}" | |
MAIL="${{ steps.vars.outputs.mail }}" | |
KEY_TYPE="${{ steps.vars.outputs.key_type }}" | |
if [[ "$ACCOUNT" != "0" ]]; then | |
python3 main.py --auto-detect-browser --account --email-api "$MAIL" --skip-update-check --no-logo --disable-progress-bar --disable-logging --repeat "$ACCOUNT" | |
echo "Account:" >> $GITHUB_STEP_SUMMARY | |
cat ./*ACCOUNTS.txt >> $GITHUB_STEP_SUMMARY 2>/dev/null || echo "None" >> $GITHUB_STEP_SUMMARY | |
fi | |
if [[ "$KEY" != "0" ]]; then | |
python3 main.py --auto-detect-browser "$KEY_TYPE" --email-api "$MAIL" --skip-update-check --no-logo --disable-progress-bar --disable-logging --repeat "$KEY" | |
echo -e "\nKey:" >> $GITHUB_STEP_SUMMARY | |
cat ./*KEYS.txt >> $GITHUB_STEP_SUMMARY 2>/dev/null || echo "None" >> $GITHUB_STEP_SUMMARY | |
fi | |
- name: Setup & Run Script (Windows) | |
if: runner.os == 'Windows' | |
shell: pwsh | |
run: | | |
cd ESET-KeyGen | |
python -m venv venv | |
.\venv\Scripts\pip install -r requirements.txt | |
.\venv\Scripts\Activate.ps1 | |
$ACCOUNT = "${{ steps.vars.outputs.account }}" | |
$KEY = "${{ steps.vars.outputs.key }}" | |
$MAIL = "${{ steps.vars.outputs.mail }}" | |
$KEY_TYPE = "${{ steps.vars.outputs.key_type }}" | |
if ($ACCOUNT -ne 0) { | |
python main.py --auto-detect-browser --account --email-api "$MAIL" --skip-update-check --no-logo --disable-progress-bar --disable-logging --repeat $ACCOUNT | |
echo "Account:" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append | |
Get-Content -Path ./*ACCOUNTS.txt -ErrorAction SilentlyContinue | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append | |
} | |
if ($KEY -ne 0) { | |
python main.py --auto-detect-browser "$KEY_TYPE" --email-api "$MAIL" --skip-update-check --no-logo --disable-progress-bar --disable-logging --repeat $KEY | |
echo "`nKey:" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append | |
Get-Content -Path ./*KEYS.txt -ErrorAction SilentlyContinue | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append | |
} |