Jump to content

exec() in php


lampbally

Recommended Posts

I tried to execute the following line in php.

exec( "smbclient -L server-name -Uusername%Password@2 -Wagi | grep -v '\$'", $output1, $return1);

 

where username is my domain username

          Password@2 is my domain password

          server-name is the name of the server.

 

1) when i run this on apache, my domain password got locked. Is that because of '@' present in my password?

(or)

does php accept '%' along with the exec  command?

2) i want the output to be listed

 

can anyone help me with this.

Link to comment
https://forums.phpfreaks.com/topic/140978-exec-in-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.