04-12-2013, 21:48
(04-12-2013, 21:08)kokole Wrote: Even PHP can be highly vulnerable to crackers and stuff. So try to use some packer or whatever.
What? Sure you can capture data but it isn't exactly vulnerable.
OT: Open a HTTP stream to the webpage and add headers.
CSHARP Code
- ...other code...
-
- conn.headers.Add("Content-Disposition: form-data; name="uploaded"; filename="content.txt");
- conn.headers.Add("Content-Type: text/plain");
- conn.WriteLine(...clipboard data...);
Server side:
- Check file type (restrictions)
Check file size (restrictions)
Possibly limit the number of uploads per IP/at a time
Generate random file name
Save file to a server folder and return a link to it (or use a PHP file to serve the data instead of direct)