-
Notifications
You must be signed in to change notification settings - Fork 810
71 lines (67 loc) · 2.69 KB
/
eset.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Generator
on:
workflow_dispatch:
inputs:
account:
description: 'Number of Accounts to be generated (default = 0)'
required: false
default: '0'
key:
description: 'Number of Keys to be generated (default = 1)'
required: false
default: '1'
mail:
description: 'Choose the mail provider to generate license'
required: true
type: choice
options:
- 1secmail
- guerrillamail
- developermail
- mailticking
- fakemail
default: developermail
key_type:
description: 'Modes of operation'
required: true
type: choice
options:
- --key
- --small-business-key
- --vpn-codes
default: --key
jobs:
GenerateKey:
runs-on: ubuntu-latest
steps:
- name: Generate key
run: |
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 env
sudo apt update
sudo apt install -y python3-pip python3-venv
python3 -m venv venv
source venv/bin/activate
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