How about using the same mechanism as the regular ping ?
24 -rwsr-xr-x 1 root root 22620 Jan 16 2001 /bin/ping*
Note that ping on my system is suid root !
chown root myping
chmod u+s myping
Whatz goin on here? +s what does it mean?? plz do explain,Quote:> su root
> chown root myping
> chmod u+s myping
> > su root
> > chown root myping
> > chmod u+s myping
> Whatz goin on here? +s what does it mean?? plz do explain,
> (sorry, if its too basic , but i did'nt find anything related to that
> opt (+s) in the man pages.)
it means that when somebody executes the program 'myping' the
execution has the same permission of the owner, in this case root. if
you check for example the passwd program, it has the same permission
value becuase he is the only with write privileges in /etc/passwd text
file. You got me?
Hope I helped you
PS. can you send me that program you did? it has to be interesting...
What do a raw IP and raw ICMP socket mean?
Thanks a lot.
4. 3dfx Xv
12. Socket Creation