View Single Post
Old 06-08-2006, 12:03 PM   · #30
111111z
NamePros Regular
 
Trader Rating: (2)
Join Date: Dec 2004
Posts: 290
NP$: 38.45 (Donate)
111111z will become famous soon enough111111z will become famous soon enough
hey great job on the script. It worked the first time i tryed...Since you can create email accounts with this script. With some minor changes you can do almost anything you can do when your logged in as the CPanel Admin.

hmm like create subdirectoies on the fly, forwarding accounts, display stats, add block IP addresses, add delete ftp accounts,add domains...
..its endless.....

I just wonder if there is a Security risk? Some testing i did could not find one.

Again Thanks

like i was saying, anything could be displayed

AWSTATS for 0www.net


not complete code added to cpemail class just to test and hardcoded to 0www.net outblaz was my main domain for my cpanel

\/ \/ \/


function get_awstats() {
$file = fopen ("http://$this->cpuser:$this->cppass@$this->cpip:2082/awstats.pl?config=0www.outblaz.com&lang=en&framename=mainright\" noresize=\"0\" scrolling=\"YES\" frameborder=\"0\"","r");
if (!$file) {
echo "error error error";
}
// Get results
while (!feof ($file)) {
$line = fgets ($file, 1024);
echo $line;
}
fclose($file);
}


}
// Process form
$do = new CPAWSTAT;

$do->get_awstats();


Please register or log-in into NamePros to hide ads
111111z is offline   Reply With Quote
Site Sponsors
Click to Watch Instant Video EscrowDNS http://www.mobisitetrader.com/
Advertise your business at NamePros
All times are GMT -7. The time now is 12:29 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.