Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upload Clipboard Text data to a server
#11
(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
  1. ...other code...
  2.  
  3. conn.headers.Add("Content-Disposition: form-data; name="uploaded"; filename="content.txt");
  4. conn.headers.Add("Content-Type: text/plain");
  5. 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)
[Image: b_560_95_1.png]
Reply

#12
@kokole PHP is not unsafe.
I wonder how you got that idea.

(If it's sooooooo unsafe, why don't you deface itsmods.com?)
Reply

#13
(04-13-2013, 11:04)SuperNovaAO Wrote: @kokole PHP is not unsafe.
I wonder how you got that idea.

(If it's sooooooo unsafe, why don't you deface itsmods.com?)

Sorry I was wrong, what I wanted to say is that if you want to protect your app against cracking, you better hide those php queries if the data recieved is critical.
Reply

#14
(04-13-2013, 11:04)SuperNovaAO Wrote: @kokole PHP is not unsafe.
I wonder how you got that idea.

(If it's sooooooo unsafe, why don't you deface itsmods.com?)

PHP is not unsafe, but write a file to the server and then display it in a browser can be unsafe if it's not perfectly managed....
Reply

#15
(04-13-2013, 14:08)kokole Wrote:
(04-13-2013, 11:04)SuperNovaAO Wrote: @kokole PHP is not unsafe.
I wonder how you got that idea.

(If it's sooooooo unsafe, why don't you deface itsmods.com?)

Sorry I was wrong, what I wanted to say is that if you want to protect your app against cracking, you better hide those php queries if the data recieved is critical.

But there is no risk in that. If someone cracks your C# app to look how the data is transmitted, he/she then knows how to transmit text to your server which can be outputted later. Whoop fucking doo. Nothing of value was lost.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] Windows 8.1 Fix for MW3 Server Addon master131 16 18,198 09-29-2014, 23:08
Last Post: SuperNovaAO
Brick [Release] MW3 Server Administration Addon iRoNinja 5 9,012 11-10-2013, 15:46
Last Post: Casper
Exclamation Help cmdlist, dvarlist server crash Nerus 17 11,913 11-09-2013, 23:54
Last Post: Nerus
  Our Level Fastfile is Different from the Server. CheeseToast 6 11,322 11-03-2013, 17:52
Last Post: CheeseToast
  Dedicated Server External (public) IP Nerus 3 5,901 11-02-2013, 14:16
Last Post: Casper
  MW3 Server Version superg1973 7 12,749 10-28-2013, 01:15
Last Post: kotyra972
  Getting text from a website JustDoingThisShit 2 2,853 10-21-2013, 08:00
Last Post: JustDoingThisShit
  Storing data in a database shanky 3 3,055 10-16-2013, 01:37
Last Post: yokai134
  Help how to turn off map in dedicated server pero123 8 7,134 10-15-2013, 19:00
Last Post: Nekochan
  Issue with server addon and NAT dimitrifrom31 3 5,084 10-08-2013, 18:11
Last Post: iRoNinja

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.