-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
web-check #2662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
web-check #2662
Changes from 3 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b1ac8a9
add: web-check-install.sh
CrazyWolf13 837f11c
add: web-check.sh
CrazyWolf13 2ff6915
Create web-check.json
CrazyWolf13 5fe7178
Update web-check-install.sh
CrazyWolf13 82d8c16
Update web-check-install.sh
CrazyWolf13 0239ea9
Update web-check-install.sh
CrazyWolf13 95ece44
Update web-check.sh
CrazyWolf13 01beb32
Update web-check.json
CrazyWolf13 17e411e
Update web-check.sh
CrazyWolf13 d2febfe
Update web-check-install.sh
CrazyWolf13 2751394
Update web-check.json
CrazyWolf13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/usr/bin/env bash | ||
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) | ||
# Copyright (c) 2021-2025 community-scripts ORG | ||
# Author: CrazyWolf13 | ||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE | ||
# Source: https://github.com/Lissy93/web-check | ||
|
||
APP="web-check" | ||
TAGS="network;analysis" | ||
var_cpu="2" | ||
var_ram="2048" | ||
var_disk="12" | ||
var_os="debian" | ||
var_version="12" | ||
var_unprivileged="1" | ||
|
||
header_info "$APP" | ||
variables | ||
color | ||
catch_errors | ||
|
||
function update_script() { | ||
header_info | ||
check_container_storage | ||
check_container_resources | ||
if [[ ! -d /opt/web-check ]]; then | ||
msg_error "No ${APP} Installation Found!" | ||
exit | ||
fi | ||
msg_error "Ther is currently no automatic update function for ${APP}." | ||
exit | ||
} | ||
|
||
start | ||
build_container | ||
description | ||
|
||
msg_ok "Completed Successfully!\n" | ||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" | ||
echo -e "${INFO}${YW} Access it using the following URL:${CL}" | ||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright (c) 2021-2025 community-scripts ORG | ||
# Author: CrazyWolf13 | ||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE | ||
# Source: https://github.com/lissy93/web-check | ||
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" | ||
|
||
color | ||
verb_ip6 | ||
catch_errors | ||
setting_up_container | ||
network_check | ||
update_os | ||
|
||
msg_info "Installing Dependencies" | ||
$STD apt-get -y install --no-install-recommends \ | ||
CrazyWolf13 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
curl \ | ||
sudo \ | ||
mc \ | ||
git \ | ||
gnupg \ | ||
traceroute \ | ||
python3 \ | ||
CrazyWolf13 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
make \ | ||
g++ \ | ||
traceroute \ | ||
xvfb \ | ||
dbus \ | ||
xorg \ | ||
xvfb \ | ||
gtk2-engines-pixbuf \ | ||
dbus-x11 \ | ||
xfonts-base \ | ||
xfonts-100dpi \ | ||
xfonts-75dpi \ | ||
xfonts-scalable \ | ||
imagemagick \ | ||
x11-apps | ||
msg_ok "Installed Dependencies" | ||
|
||
msg_info "Setting up Node.js Repository" | ||
mkdir -p /etc/apt/keyrings | ||
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg | ||
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" >/etc/apt/sources.list.d/nodesource.list | ||
msg_ok "Set up Node.js Repository" | ||
|
||
msg_info "Setup Python3" | ||
$STD apt-get install -y python3 | ||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED | ||
msg_ok "Setup Python3" | ||
|
||
msg_info "Installing Chromium" | ||
curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /etc/apt/trusted.gpg.d/google-archive.gpg | ||
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >/etc/apt/sources.list.d/google.list | ||
$STD apt-get update | ||
$STD apt-get -y install \ | ||
chromium \ | ||
libxss1 \ | ||
lsb-release | ||
msg_ok "Installed Chromium" | ||
|
||
msg_info "Installing Node.js" | ||
$STD apt-get update | ||
$STD apt-get install -y nodejs | ||
$STD npm install -g yarn | ||
msg_ok "Installed Node.js" | ||
|
||
msg_info "Setting up Chromium" | ||
/usr/bin/chromium --no-sandbox --version > /etc/chromium-version | ||
chmod 755 /usr/bin/chromium | ||
msg_ok "Finished setting up Chromium" | ||
CrazyWolf13 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
msg_info "Installing Web-Check (Patience)" | ||
temp_file=$(mktemp) | ||
# RELEASE=$(curl -s https://api.github.com/repos/Lissy93/web-check/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') | ||
# wget -q "https://github.com/Lissy93/web-check/archive/refs/tags/${RELEASE}.tar.gz" -O $temp_file | ||
CrazyWolf13 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
RELEASE="patch-1" | ||
wget -q "https://github.com/CrazyWolf13/web-check/archive/refs/heads/${RELEASE}.tar.gz" -O $temp_file | ||
tar xzf $temp_file | ||
mv web-check-${RELEASE} /opt/web-check | ||
cd /opt/web-check | ||
cat <<EOF > /opt/web-check/.env | ||
CHROME_PATH=/usr/bin/chromium | ||
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium | ||
HEADLESS=true | ||
GOOGLE_CLOUD_API_KEY='' | ||
REACT_APP_SHODAN_API_KEY='' | ||
REACT_APP_WHO_API_KEY='' | ||
SECURITY_TRAILS_API_KEY='' | ||
CLOUDMERSIVE_API_KEY='' | ||
TRANCO_USERNAME='' | ||
TRANCO_API_KEY='' | ||
URL_SCAN_API_KEY='' | ||
BUILT_WITH_API_KEY='' | ||
TORRENT_IP_API_KEY='' | ||
PORT='3000' | ||
DISABLE_GUI='false' | ||
API_TIMEOUT_LIMIT='10000' | ||
API_CORS_ORIGIN='*' | ||
API_ENABLE_RATE_LIMIT='false' | ||
REACT_APP_API_ENDPOINT='/api' | ||
ENABLE_ANALYTICS='false' | ||
EOF | ||
$STD yarn install --frozen-lockfile --network-timeout 100000 | ||
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt | ||
msg_ok "Installed Web-Check" | ||
|
||
msg_info "Building Web-Check" | ||
$STD yarn build --production | ||
msg_ok "Built Web-Check" | ||
|
||
msg_info "Creating Service" | ||
cat > /opt/run_web-check.sh << 'EOF' | ||
CrazyWolf13 marked this conversation as resolved.
Show resolved
Hide resolved
CrazyWolf13 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#!/bin/bash | ||
SCREEN_RESOLUTION="1280x1024x24" | ||
if ! systemctl is-active --quiet dbus; then | ||
echo "Warning: dbus service is not running. Some features may not work properly." | ||
fi | ||
[[ -z "${DISPLAY}" ]] && export DISPLAY=":99" | ||
Xvfb "${DISPLAY}" -screen 0 "${SCREEN_RESOLUTION}" & | ||
XVFB_PID=$! | ||
sleep 2 | ||
cd /opt/web-check | ||
exec yarn start | ||
EOF | ||
chmod +x /opt/run_web-check.sh | ||
cat > /etc/systemd/system/web-check.service << 'EOF' | ||
CrazyWolf13 marked this conversation as resolved.
Show resolved
Hide resolved
CrazyWolf13 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
[Unit] | ||
Description=Web Check Service | ||
After=network.target | ||
|
||
[Service] | ||
Type=simple | ||
User=root | ||
Group=root | ||
WorkingDirectory=/opt/web-check | ||
EnvironmentFile=/opt/web-check/.env | ||
ExecStartPre=/bin/bash -c "service dbus start || true" | ||
ExecStartPre=/bin/bash -c "if ! pgrep -f 'Xvfb.*:99' > /dev/null; then Xvfb :99 -screen 0 1280x1024x24 & fi" | ||
ExecStart=/opt/run_web-check.sh | ||
Restart=on-failure | ||
Environment=DISPLAY=:99 | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
EOF | ||
$STD systemctl enable -q --now web-check | ||
CrazyWolf13 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
msg_ok "Created Service" | ||
|
||
motd_ssh | ||
customize | ||
|
||
msg_info "Cleaning up" | ||
rm -rf $temp_file | ||
rm -rf /var/lib/apt/lists/* /app/node_modules/.cache | ||
MickLesk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
$STD apt-get -y autoremove | ||
$STD apt-get -y autoclean | ||
msg_ok "Cleaned" | ||
|
||
motd_ssh | ||
customize |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"name": "Web-Check", | ||
"slug": "web-check", | ||
"categories": [ | ||
4 | ||
], | ||
"date_created": "2025-02-26", | ||
"type": "ct", | ||
"updateable": false, | ||
"privileged": false, | ||
"interface_port": 3000, | ||
"documentation": "https://github.com/Lissy93/web-check/blob/master/.github/README.md", | ||
"website": "https://github.com/lissy93/web-check", | ||
"logo": "https://github.com/Lissy93/web-check/blob/master/public/favicon-32x32.png?raw=true", | ||
CrazyWolf13 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"description": "Get an insight into the inner-workings of a given website: uncover potential attack vectors, analyse server architecture, view security configurations, and learn what technologies a site is using.", | ||
"install_methods": [ | ||
{ | ||
"type": "default", | ||
"script": "ct/web-check.sh", | ||
"resources": { | ||
"cpu": 2, | ||
"ram": 2048, | ||
"hdd": 12, | ||
"os": "Debian", | ||
CrazyWolf13 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"version": "12" | ||
} | ||
} | ||
], | ||
"default_credentials": { | ||
"username": null, | ||
"password": null | ||
}, | ||
"notes": [] | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.