$ request .=" Host: xservidor.com \\ r \\ n "; $ request .=" Content-Type: application / x-www-form-urlencoded \\ r \\ n "; $ request .=" Content-Length: $ logitud \\ r \\ n "; $ request .=" Connection close \\ r \\ n "; $ request .=" \\ r \\ n "; $ request .= $ content; if ($ handle = fsockopen ("servidor.com" 80)) { fputs ($ handle, $ request); while (! Feof ($ handle)) {$ response .= fgets ($ handle, 1024); } fclose ($ handler); } With this script we test our forms or could be used for mass data entry. But to attack our sites so we should use a captcha to prevent these attacks.
0 comments:
Post a Comment