EvilZone
Programming and Scripting => Other => : Kulverstukas January 03, 2012, 11:12:58 PM
-
Howdy y’all. A friend asked to make an application as a plugin for the radio station he has. Application to update the “Now playing” list with each new song playing on the radio. For this it has to check a text file, read the name of the song, and if it isn’t the same as before – send it to the server.
Simple concept for a simple application.
Program is a console app, so it should be ran from the command line (cmd). Or if you want to hide the window and make it run in the background, do this:
Create a shortcut for the application and name it the same as the application itself. Go to properties and add the arguments (see below).
Arguments:
- time – interval in seconds to check the file
- file_name – full path including the name of the file of course
- URL – where to send the data. URL should be like this: http://something.lt/script.php?=
So a full example would be like this: eteryje.exe 10 c:\songs.txt http://something.lt/script.php?=
Download:
Compiled exe: eteryje.exe (http://newage.ql.lt/projects/delphi/Eteryje/eteryje.exe)
Code: Eteryje.zip (http://newage.ql.lt/projects/delphi/Eteryje/Eteryje.zip)
Instruction in Lithuanian language: instrukcijos.txt (http://newage.ql.lt/projects/delphi/Eteryje/instrukcijos.txt)
-
Be sure to double^10000000000000 check a php script like that, because there can be many security flaws and anyone would be able to enter a song name :P
-
not unless you use a long, randomly generated name for the script. For amateur radio's it's fine. But if it were to be used as a keylogger module to upload data, then it isn't very secure. But then again, my intentions was to make it for the radio station, not for a keylogger :P