Golang-phish-update/README.md

55 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2023-01-09 15:55:43 +00:00
A free to use update tool which checks phish.sinking.yachts database.
2023-01-10 08:08:12 +00:00
It adds all domains found after custom domains are added. If not needed they can be commented or removed.
2023-01-12 14:34:20 +00:00
**added a processbar**
2023-01-16 08:59:35 +00:00
To install this package you can use one of the below.
```text
git clone https://git.codingvm.codes/ultimateplayer1999/Golang-phish-update.git (Use this one if you do not have SSH keys linked.)
git clone git@git.codingvm.codes:ultimateplayer1999/Golang-phish-update.git
```
To install the needed external packages use the following commands.
```text
go get github.com/joho/godotenv
go get github.com/cheggaaa/pb/v3
go get github.com/go-sql-driver/mysql
```
2023-01-10 08:08:12 +00:00
The following code is needed in a .env. This is for the DB connection.
2023-01-09 16:00:45 +00:00
2023-01-11 14:23:11 +00:00
```text
DB_HOST=
DB_PORT=
DATABASE=
DB_USER=
DB_PASS=
```
2023-01-10 07:59:03 +00:00
2023-01-10 08:08:12 +00:00
This is based on the phish table. Table can also be changed if needed.
2023-01-12 14:34:20 +00:00
Execution time is *1h26m19.334785368s*. This was for **18876 records**.
2023-01-11 15:04:17 +00:00
Sample output with provided code:
2023-01-11 11:43:55 +00:00
2023-01-11 14:23:11 +00:00
```text
2023-01-12 14:34:20 +00:00
Script started at 12-01-2023 13:49:59
Deletion: Number of rows affected: 59
2023-01-11 14:23:11 +00:00
Altering: Number of rows affected: 0
Insert: Number of rows affected: 1
Insert: Number of rows affected: 1
2023-01-12 14:34:20 +00:00
Status code dbsize endpoint: 200
12-01-2023 13:50:00: Initial database table setup done
2023-01-11 14:23:11 +00:00
Status code: 200
18876 / 18876 [-------------------------------------------------------------------------------------------->] 100%
2023-01-12 14:34:20 +00:00
Total number of rows affected: 18876
2023-01-11 14:23:11 +00:00
Recent changes recieved and has been added to the database. Removed domains deleted from database. Reorded domains.
2023-01-12 14:34:20 +00:00
Script ended at 12-01-2023 15:16:19
Time until completion: 1h26m19.334785368s
2023-01-11 14:23:11 +00:00
```
2023-01-16 08:59:35 +00:00
# DISCLAIMER
The binary may need to be rebuild. As it is build on Ubuntu and it may also depends on how you installed Golang.