English | Magyar
JS ki | CSS ki | Ékezetek ki | HiContrast
Lapozó:  (0 - 1424) 
<== | ==>
Ugrás a végére | Összes megjelenítése | Utolsó oldal
OpenOpera patches | Opera-SSL patches | Opera 12.15 source (Git repository) | Opera 12.15 source (Torrent) | Opera internal pages | Otter Browser Linux x64 - Qt5.15.2/QtWebKit5.602.1 (2024.04.27. 20:05)
OS for MC680x0 | OS for PPC | OS for Sparc64 | besztofbégéaefcé | CSÉNDZSLOG | WebToolz | DDG Shit Filter | Google Shit Filter | Progz | Fast CSS Box | Browser | OS | Agent | Statisztika | BBCode
Monospace font-family: Courier New | Browser default monospace
Email értesítő / Email notification ===> 
Keresés
Σ: 1 post

TCH  (statz) Főfasz
#1, Főfasz (10443)
1395 | #566d | ^ | Idézet | Thu, 22 Dec 2022 23:30:33 +01
188.143.*.* Linux x86 Opera Classic Hungary *.pool.digikabel.hu
Szopat a tárhejszógátató, hogy nincs eval(), de még symlink() se, meraznaonveszéjes, esesházzál be minden rohadt symlink-ért, (ja, főleg, ha a rendszernek van szüksége rá és automatikusan kéne létrehozni, bazdmeg, persze), viszont a balfaszok nem védték le, hogy cron-ból csak PHP scripteket lehessen meghívni? UNIX Shell eval backend to the rescue!
#!/bin/sh

BLOCK="eval/eval_backend.block"
RUNNING="eval/eval_backend.running"

cd /path/to/your/wwwroot
mkdir eval
chmod 777 eval

if [ -f "$BLOCK" ] || [ -f "$RUNNING" ];
then
	exit 0
fi
touch "$RUNNING"

RUN="1"
while [ "$RUN" != "0" ];
do
	sleep 1
	if [ -f "$BLOCK" ];
	then
		RUN="0"
	else
		for FILE in eval/*.sh;
		do
			if [ -f "$FILE" ];
			then
				chmod +x "$FILE"
				"$FILE"
				rm "$FILE"
			fi
		done
	fi
done
rm "$RUNNING"
exit 0
És a PHP kód hozzá:
<?php

function c_eval($line)
{
	srand(time());
	$path = 'eval/tmp_' . rand(0, 32767) . '.sh';
	@file_put_contents($path, "#!/bin/sh\n$line");
	chmod($path, 0777);
}

?>
(Igen, kétszer van chmod, mert egyszer PHP-ból, egyszer shell-ből, de jobb kétszer, mint egyszer sem, nemde? Hátha valamelyik nem hajtódik végre... Sicher ist sicher.)


English | Magyar
JS ki | CSS ki | Ékezetek ki | HiContrast
Lapozó:  (0 - 1424) 
<== | ==>
Ugrás a végére | Összes megjelenítése | Utolsó oldal
OpenOpera patches | Opera-SSL patches | Opera 12.15 source (Git repository) | Opera 12.15 source (Torrent) | Opera internal pages | Otter Browser Linux x64 - Qt5.15.2/QtWebKit5.602.1 (2024.04.27. 20:05)
OS for MC680x0 | OS for PPC | OS for Sparc64 | besztofbégéaefcé | CSÉNDZSLOG | WebToolz | DDG Shit Filter | Google Shit Filter | Progz | Fast CSS Box | Browser | OS | Agent | Statisztika | BBCode
Monospace font-family: Courier New | Browser default monospace
Email értesítő / Email notification ===> 
Keresés

Név: (max 255 byte)

Email: (max 255 byte) Nem kötelező!

Üzenet: (max 65536 kar.) 65536-0=65536




crap_vkn v4.34.0 by TCH
Thx to saxus for the escaped string decoder function (PHP), the realIP function (PHP) & the SQL handle layer (PHP), to thookerov for the int_divide function (PHP), to Jeff Anderson for the getSelText function (JS), to Alex King for the insertAtCursor function (JS), Flood3r for the new CSS styles, Pety for the spamprotection idea and some design and comfort ideas, MaxMind for the IP2Country database, famfamfam for the flags of countries and an unknown PHP programmer for the removeAccents function.



Kecskebaszók ide!