void main(int argc,char *argv[])
{
if (strstr(getenv("GROUPS"),argv[1]) && strchr(getenv("FLAGS"),"+") && strchr(getenv("FLAGS"),"G")){
<insert code here>
}
}
Just use the environment vars it is the easy way.
Example env vars:
200-ACCSPEED=0.0000
200-COMSPEC=C:\WINDOWS\System32\cmd.exe
200-FLAGS=1MTH
200-GID=0
200-GROUP=ioftpd
200-GROUPS=ioftpd
200-PATH=d:\ioFTPD\site
200-PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.JS;.WS
200-PROMPT=$P$G
200-PWD=/
200-SECTION=0
200-SPEED=0
200-TAGLINE=Speed of light
200-UID=0
200-USER=ioFTPD
200 Command Successful.
Put your own checking code in
|