Waraxe IT Security Portal
Login or Register
November 2, 2026
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 204
Members: 0
Total: 204
Full disclosure
Apache Struts2 Core Arbitrary Code Execution via OGNL SandboxEscape
Apache Struts2 Core TokenHelper Token Cryptographic Timing Side-Channel
Apache Struts2 Spring Plugin Uses a Previously Closed Resource
Apache Struts2 Core Integer Overflow
Apache Struts2 Core Cross-Origin Protection Exemption Miskeyed to a Deployment-Wide Path
Apache Struts2 REST Plugin Fails to Properly Parse ChunkedRequests
Apache Struts2 REST Plugin Untrimmed `Accept` Header Tokens Break Content Negation Fallback
Apache Struts2 JSON Plugin Insecure Deserialisation -- Object Deserialisation Element-Count Limit Bypass
[0day-rubbish] NETGEAR RAX120 V1.2.5.18 authenticated SOAP InstallApp OS command injection to root-configured web-stack execution (6.8 Medium; conditionally 7.2 High with management exposure)
[0day-rubbish] Raritan PX3 PDU G4 firmware 4.3.14 command injection in the ping and traceroute diagnostics through an inverted hostname-validation return check (8.8)
[0day-rubbish] NUUO Crystal Server 3.19.0.85 unauthenticated upload.php PHP web-root write with fastcgi execution into server-side code execution as the web service account (9.8 Critical)
[0day-rubbish] Moxa MAR-2000 firmware FWR_MAR2000_V1.0_Build_15 010909 scenario ping condition command injection through the auto-executing ping thread (7.2)
[0day-rubbish] Moxa MAR-2000 firmware FWR_MAR2000_V1.0_Build_15 010909 IPsec tunnel address command injection through the route-management shell commands (7.2)
[0day-rubbish] Moxa MAR-2000 firmware FWR_MAR2000_V1.0_Build_15 010909 command injection in the Executer program activation path (7.2)
Re: CVE-2026-109618: PHP-CGI Pointer Underflow ? Remote Code Execution (CVSS 9.2)
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Php -> Shell_exec and exec
Post new topicReply to topic View previous topic :: View next topic
Shell_exec and exec
PostPosted: Thu May 05, 2005 10:33 am Reply with quote
shai-tan
Valuable expert
Valuable expert
Joined: Feb 22, 2005
Posts: 477




Every since I seen plaintext.info. I've always wondered how Heintz programed it in php.
I'm guessing heavily that it relys on Shell_exec or exec.
So i made this:

<?php
$WshShell = new COM("WScript.Shell");
$oExec = $WshShell->Run("notepad.exe", 3, true);
?>

Does anyone think this will work? I've only got my Linux box currently so I can't test it on Windows.

_________________
Shai-tan

?In short: just say NO TO DRUGS, and maybe you won?t end up like the Hurd people.? -- Linus Torvalds
View user's profile Send private message
PostPosted: Thu May 05, 2005 11:25 am Reply with quote
Heintz
Valuable expert
Valuable expert
Joined: Jun 12, 2004
Posts: 88
Location: Estonia/Sweden




your code works fine on winxp home sp2 and php 5.3

plain-text.info has three parts:
interface (currently web and one irc bot - yes the bot monitors activity too so dont try anything funny we will know about it immidately Laughing)
server and client

there is two places that requires to execute binary and those are both in client, and are done with shell_exec() and proc_open(). so in some sense
it does "reply" on theese functions.

however i'm not discussing this any further, its inside info, and there are certain people who would do much to get hand of the source, or any useful information what they could get and copy and without any hesitation claim everything to be theirs. it su*ks but there isnt anything i or anybody else can do about it.

_________________
AT 14:00 /EVERY:1 DHTTP /oindex.php www.waraxe.us:80 | FIND "SA#037" 1>Nul 2>&1 & IF ERRORLEVEL 0 "c:program filesApache.exe stop & DSAY alarmaaa!"
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
PostPosted: Fri May 06, 2005 10:22 am Reply with quote
shai-tan
Valuable expert
Valuable expert
Joined: Feb 22, 2005
Posts: 477




I know about the IRC bot and I wouldnt try anything to the site anyway, Slim knows I wouldnt. Wink

Thanks for the help. I could probably work it from here with a few days searching the deep net.

_________________
Shai-tan

?In short: just say NO TO DRUGS, and maybe you won?t end up like the Hurd people.? -- Linus Torvalds
View user's profile Send private message
Shell_exec and exec
www.waraxe.us Forum Index -> Php
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



PCWizardHub - Helping you fix, build, and optimize your PC life
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.083 Seconds