-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
1,253 additions
and
3,434 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,60 @@ | ||
--- | ||
name: Request Situs Baru | ||
about: Request situs baru untuk ditambahkan | ||
about: Request situs baru untuk ditambahkan ke dalam daftar | ||
title: '[REQ] example.com' | ||
labels: 'request, sites' | ||
assignees: 'ryukora, gvoze32' | ||
|
||
--- | ||
|
||
<!-- | ||
Terima kasih telah melaporkan masalah! | ||
Pastikan website yang akan direquest belum tersedia pada daftar hosts | ||
--> | ||
assignees: | ||
- gvoze32 | ||
- ryukora | ||
body: | ||
- type: input | ||
id: domain | ||
attributes: | ||
label: Domain | ||
description: Masukkan domain | ||
placeholder: example.com | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: alasan | ||
attributes: | ||
label: Alasan | ||
description: Berikan Alasan | ||
validations: | ||
required: true | ||
- type: input | ||
id: isp | ||
attributes: | ||
label: ISP Apa yang anda gunakan | ||
placeholder: Telkom, IndiHome, dll. | ||
validations: | ||
required: true | ||
- type: input | ||
id: os | ||
attributes: | ||
label: Sistem Operasi (OS) | ||
description: Masukkan sistem operasi yang Anda gunakan. | ||
placeholder: Windows 11, macOS, Debian Linux | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: optional-comment | ||
attributes: | ||
label: Komentar | ||
- type: checkboxes | ||
id: validate | ||
attributes: | ||
label: Validasi | ||
description: Dengan mengirimkan isu ini, Anda telah melihat dan memastikan bahwa domain yang Anda masukkan tidak ada di dalam daftar [domainlist](https://github.com/bebasid/bebasid/blob/main/dev/domainlist) dan berstatus "Ada" serta mempunyai keterangan "Blocked" pada [database blokir](https://trustpositif.kominfo.go.id/check). | ||
options: | ||
- label: Saya telah melihat dan memastikan bahwa domain yang saya masukkan tidak ada di dalam daftar domainlist | ||
required: true | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Kode Etik | ||
description: Dengan mengirimkan isu ini, Anda setuju untuk mengikuti [Kode Etik](https://github.com/bebasid/bebasid/blob/master/dev/readme/RULES.md) | ||
options: | ||
- label: Saya menyetujui untuk mengikuti Kode Etik proyek ini | ||
required: true | ||
--- |
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Request Issue Solver | ||
on: | ||
issues: | ||
types: | ||
- labeled | ||
jobs: | ||
scan_domains_request: | ||
if: github.event.label.name == 'solve' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Close Issue | ||
uses: peter-evans/close-issue@v3 | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
comment: Terima kasih atas kontribusi Anda, permintaan penambahan domain Anda akan segera diterapkan. | ||
- name: Update Domainlist from Issue | ||
run: | | ||
domain=$(jq -r '.issue.body' "$GITHUB_EVENT_PATH" | sed -n '3p') | ||
echo -e "$domain" >> domainlist | ||
echo "Domain $domain added to domainlist." | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y curl unzip wget jq | ||
curl -LO https://github.com/findomain/findomain/releases/latest/download/findomain-linux.zip | ||
unzip findomain-linux.zip | ||
chmod +x findomain | ||
sudo mv findomain /usr/bin/findomain | ||
wget https://raw.githubusercontent.com/bebasid/bebasid/master/dev/scripts/scan.py | ||
echo "INSTALLATION DONE - ALL SET" | ||
- name: Run Findomain | ||
run: | | ||
domain=$(jq -r '.issue.body' "$GITHUB_EVENT_PATH" | sed -n '3p') | ||
findomain -t $domain -u hasilunsorted | ||
- name: Sort Subdomains | ||
run: | | ||
python - <<EOF | ||
with open('hasilunsorted', 'r') as file: | ||
lines = [line.rstrip() for line in file.readlines()] | ||
sorted_lines = sorted(lines, key=len) | ||
sorted_content = "\n".join(sorted_lines) | ||
with open('hasilsorted', 'w') as file: | ||
file.write(sorted_content) | ||
EOF | ||
- name: Run Scan | ||
run: | | ||
python scan.py hasilsorted | ||
echo | ||
echo "Result Lists:" | ||
cat hosts-hasilsorted | ||
- name: Release hosts | ||
run: | | ||
cat hosts-hasilsorted | sudo tee -a hosts > /dev/null | ||
- name: Commit changes | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "zksbot" | ||
git add hosts domainlist | ||
domain=$(jq -r '.issue.body' "$GITHUB_EVENT_PATH" | sed -n '3p') | ||
git commit -m "Add $domain to domainlist and hosts" | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.UPDATE_TOKEN }} |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.