Accessing An External Programm
Moderator: General Moderators
- neel_basu
- Forum Contributor
- Posts: 454
- Joined: Wed Dec 06, 2006 9:33 am
- Location: Picnic Garden, Kolkata, India
I Wanna Use php To Interact With That C Program
That Programm Doesn't Have Any Interaction With File System
Can Hackers Make Any Damage To It By Passing A Bad Value As Argument To That Program Through Script Kiddies To Make That Programm Injurious To The Health Of http Server??
If yes Then Would You Please Tell Me About That Bad Values ??
That Programm Doesn't Have Any Interaction With File System
Can Hackers Make Any Damage To It By Passing A Bad Value As Argument To That Program Through Script Kiddies To Make That Programm Injurious To The Health Of http Server??
If yes Then Would You Please Tell Me About That Bad Values ??
- neel_basu
- Forum Contributor
- Posts: 454
- Joined: Wed Dec 06, 2006 9:33 am
- Location: Picnic Garden, Kolkata, India
If Its The C Code
============
Is There Any Risk ??
============
Code: Select all
#include <stdio.h>
#include <stdlib.h>
int main(int argc,char *argv[])
{
if ( argc > 1 ) {
long x = strtol(argv[1], NULL, 10);
printf("%s",argv[1]);
printf("->%ld", x*5);
}
return 0;
}- neel_basu
- Forum Contributor
- Posts: 454
- Joined: Wed Dec 06, 2006 9:33 am
- Location: Picnic Garden, Kolkata, India
I Have Another Question Also
Would This Code Run In Linux or Free BSD Servers as Well As Windows Server ??
If I Upload The exe File In That Server In The Same Drectory Where My php Script Is ??
Would This Code Run In Linux or Free BSD Servers as Well As Windows Server ??
Code: Select all
$output = shell_exe('mult.exe');
print $output;eh... why?neel_basu wrote:I Wanna Create My Own Encryption Decryption Module
So If The Encryption Decryption Function Is Written On php
It Would Be Easy To The Hackers
And please, don't write an "Own Encryption Decryption Module". It's very,very unlikely you come up with a good strong one just like that.
Better take a look at http://de2.php.net/mcrypt