IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Equivalent functionality of PHPsysinfo with python?
Hey,

In reading through Tim Honkalammi's Debian pages I came across [link|http://dastrike.dyndns.org/sysinfo/|this] [link|http://sourceforge.net/projects/phpsysinfo/|PHPsysinfo] listing. The script seems very powerful and looks like it would be a useful thing to try to understand as a way of learning how PHP interacts with the system. However, since there aren't enough hours in the day, I'd like to find similar functionality in python. Nothing jumps out at me searching various fields for "system information" at [link|http://www.python.org/pypi?:action=search_form|PyPI].

My bias is that PHP has a history of exploits that python doesn't. Is that historical baggage that I shouldn't worry about? Is it "safe" to have PHP installed on a Debian system that one is learning without fear of being rooted by a script-kiddie if a patch isn't applied instantly? Does similar functionality exist in python, or should I use the best tool for the job and just bite the bullet and learn both (and keep them well patched)?

Thanks a bunch.

Cheers,
Scott.
New No PHP experience here, but
From the SF page:
PHPSysInfo is a customizable PHP Script that parses /proc, and formats information nicely. It will display information about system facts like Uptime, CPU, Memory, PCI devices, SCSI devices, IDE devices, Network adapters, Disk usage, and more.


It seems "how PHP interacts with the system" in this case is through /proc. So not only does "similar functionality exist", it's put'near exactly equal. I'd bet you could write pySysInfo in a day or so.
New PHP exploits.
AFAIK, PHP security hazards are mostly "down in the language". Meaning that you can avoid a lot of them with suitably defensive programming. Things like turning registers_globals off, checking your incoming variables contain what you expect them to contain, always escaping stuff before you stuff it anywhere, that kind of thing.

Wade.

Is it enough to love
Is it enough to breathe
Somebody rip my heart out
And leave me here to bleed
 
Is it enough to die
Somebody save my life
I'd rather be Anything but Ordinary
Please

-- "Anything but Ordinary" by Avril Lavigne.

     Equivalent functionality of PHPsysinfo with python? - (Another Scott) - (2)
         No PHP experience here, but - (FuManChu)
         PHP exploits. - (static)

X is like democracy: it sucks, but everything else sucks more.
70 ms