Author Topic: Project  (Read 874 times)

0 Members and 1 Guest are viewing this topic.

Offline dsme

  • /dev/null
  • *
  • Posts: 19
  • Cookies: 3
    • View Profile
Project
« on: February 05, 2014, 03:28:33 pm »
Hi,

We have a group project to do and came up with an idea.

Is there a way that a website can control a c++ application? Say you pushed a button on a website, it would do a specific command on c++?

Offline flowjob

  • Knight
  • **
  • Posts: 327
  • Cookies: 46
  • Pastafarian
    • View Profile
Re: Project
« Reply #1 on: February 05, 2014, 04:44:34 pm »
Use sockets. Javascript and the C++ Application could connect using TCP and communicate that way...
Or use PHP instead of javascript, if the page gets reloaded after pressing the button.

BTW, What do you even want to archive with that?
« Last Edit: February 05, 2014, 04:47:30 pm by flowjob »
Quote
<phil> I'm gonna DDOS the washing machine with clothes packets.
<deviant_sheep> dont use too much soap or youll cause a bubble overflow

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Project
« Reply #2 on: February 05, 2014, 06:52:30 pm »
What he said ^

Make the program connect to your web scripts, giving appropriate commands to receive commands to execute. For ex. You press a button on the website, a value gets written to a file. The program sends a POST/GET to another/same script and that script returns an appropriate command.
It's very simple and C++ sockets are not that hard.

You can take a look at a piece of "malware" I write with that functionality, just that mine uploads the data instead.
http://evilzone.org/c-c/%28c%29-outlooker/