Skip to content

Commit

Permalink
Executable update
Browse files Browse the repository at this point in the history
Not sure if this will work but first try

- Removed blockIP function as this is not needed anymore
- Added executable compiling
  • Loading branch information
qing762 committed Dec 14, 2024
1 parent 5136952 commit 3e348bf
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 63 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=40 --max-line-length=300 --statistics
- name: Build executable
run: |
pyinstaller --onefile --clean --name "exitlag-auto-signup v3.${{ github.run_number }}" main.py
- name: Zip repo files
uses: papeloto/action-zip@v1.2
with:
Expand All @@ -43,7 +47,7 @@ jobs:
id: create_release
uses: softprops/action-gh-release@v2.0.4
with:
files: release.zip
files: release.zip, exitlag-auto-signup v3.${{ github.run_number }}.exe
name: "Release v3.${{ github.run_number }}"
body: "Commit: ${{ github.sha }}\nDownload the `release.zip` file and you are good to go!\nContinue by following the steps given in the README."
body: "Commit: ${{ github.sha }}\nDownload the `exitlag-auto-signup v3.${{ github.run_number }}.exe` file and you are good to go!"
tag_name: ${{ github.ref_name }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ settings.toml
/.vs
/lib/Detours
spoof.cpp
test.cpp
test.cpp
build/
dist/
main.spec
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,37 @@ The process begins by utilizing the [Mails.org](https://mails.org/) service to o

> **Warning**
> It is important to note that excessive usage of this tool may result in rate limiting by the API or, in severe cases, IP blocking. To avoid these potential consequences, it is recommended to limit the number of usage. (Maybe 5 times every 10 minutes?)

## Installation / Usage

### [>>> VIDEO GUIDE <<<](https://qing762.is-a.dev/exitlag-guide)

First, clone this repository:
1. Portable executable method:
- Just download the executable from the [releases tab](https://github.com/qing762/exitLag-auto-signup/releases) and run it to generate accounts.
- The account details should be generated at the `accounts.txt` file under the same directory.

2. Python file method:
- First, clone this repository:
```shell
git clone https://github.com/qing762/exitLag-auto-signup/
```
Install [Google Chrome](https://google.com/chrome/) (IMPORTANT!)
- Install [Google Chrome](https://google.com/chrome/) (IMPORTANT!)
```shell
INSTALL HERE: https://google.com/chrome/
```

Install the necessary dependencies:
- Install the necessary dependencies:
```shell
pip install -r requirements.txt
```

Finally, run the Python file:
- Finally, run the Python file:
```shell
python main.py
```

And you're all set! Follow the instructions while interacting with the Python file.
- And you're all set! Follow the instructions while interacting with the Python file.


## Known issues
Expand All @@ -72,4 +79,4 @@ If the company wishes to discontinue or terminate this project, please do not he

## License

[MIT LICENSE](https://choosealicense.com/licenses/mit/)
[MIT LICENSE](https://choosealicense.com/licenses/mit
48 changes: 0 additions & 48 deletions lib/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,53 +44,5 @@ async def switchDomain(maildomain, externaldomain):
)
return externaldomain

async def getSettingsAndBlockIP(self):
try:
data = toml.load("settings.toml")
except FileNotFoundError:
data = {"blockIP": {"blocked": False}}

if "allowed" not in data["blockIP"]:
while True:
selection = input(
"Due to a known issue of 0 trial days cause by the IP address *.exitlag.net, do you want to block the IP address? (y/n): "
)
if str(selection).capitalize() == "Y":
data["blockIP"]["allowed"] = True
break
elif str(selection).capitalize() == "N":
data["blockIP"]["allowed"] = False
break
else:
print("Invalid input. Please try again.")

if data["blockIP"].get("allowed", False) and not data["blockIP"].get(
"blocked", False
):
target = ["104.22.79.205", "104.22.78.205", "172.67.29.58"]
system = platform.system()
if system == "Windows":
hostsPath = r"C:\Windows\System32\drivers\etc\hosts"
else:
hostsPath = "/etc/hosts"
try:
with open(hostsPath, "a") as hostsFile:
for x in target:
hostsFile.write(f"\n127.0.0.1 {x}\n")
print(f"Blocked {x} in the host file.")
data["blockIP"]["blocked"] = True
print(
"Be sure to use a HWID spoofer as well to get the 3 days trial. One of the suggested spoofer is Monotone HWID Spoofer (https://github.com/sr2echa/Monotone-HWID-Spoofer)."
)
except PermissionError:
print(
"Permission denied. Please run the program as an administrator. This should be done once only!"
)
exit(-1)

with open("settings.toml", "w") as f:
toml.dump(data, f)


if __name__ == "__main__":
print("This is a library file. Please run main.py instead.")
4 changes: 0 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@
from tqdm.rich import tqdm
from DrissionPage import Chromium, ChromiumOptions
from lib.bypass import CloudflareBypasser
from lib.lib import Main

warnings.filterwarnings("ignore", category=TqdmExperimentalWarning)

async def main():
lib = Main()

await lib.getSettingsAndBlockIP()

port = ChromiumOptions().auto_port()

Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
DrissionPage==4.1.0.13
DrissionPage==4.1.0.14
toml==0.10.2
tqdm==4.66.3
rich==13.8.0
rich==13.8.0
pyinstaller==6.11.0

0 comments on commit 3e348bf

Please sign in to comment.