diff --git a/.hgignore.orig b/.hgignore.orig new file mode 100644 index 0000000..53784f3 --- /dev/null +++ b/.hgignore.orig @@ -0,0 +1,6 @@ +syntax: glob +*.pyc +.DS_Store +*.o +*~ + diff --git a/client/c/yadync.tgz b/client/c/yadync.tgz new file mode 100644 index 0000000..5c6eb70 Binary files /dev/null and b/client/c/yadync.tgz differ diff --git a/client/d/Makefile b/client/d/Makefile new file mode 100644 index 0000000..ea8d4e4 --- /dev/null +++ b/client/d/Makefile @@ -0,0 +1,9 @@ +%.o: %.d + gdc -w -c $< -o $@ + +yadynd: yadynd.o + gdc -w -o $@ $< + +.PHONY: clean +clean: + rm *.o yadynd diff --git a/client/d/yadynd.d b/client/d/yadynd.d new file mode 100644 index 0000000..cc89e00 --- /dev/null +++ b/client/d/yadynd.d @@ -0,0 +1,28 @@ +import std.stdio; +import std.socket; +import std.date; +import std.string; +import std.md5; + + +void main() { + const char[] DYN_ID = "omega"; + const char[] SHARED_SECRET = "0m3g@"; + + const char[] SERVER_IP = "88.198.170.2"; + const int SERVER_PORT = 8053; + + + long time = getUTCtime() / TicksPerSecond; + char[] data = format("%s %s %d", DYN_ID, SHARED_SECRET, time); + + ubyte[16] checksum; + sum(checksum, data); + + char[] dataToSend = format("%s %d %s", DYN_ID, time, tolower(digestToString(checksum))); + + Socket sock = new UdpSocket(AddressFamily.INET); + InternetAddress serverAddress = new InternetAddress(SERVER_IP, SERVER_PORT); + sock.sendTo(dataToSend, serverAddress); + sock.close(); +} diff --git a/server/entries.db b/server/entries.db new file mode 100644 index 0000000..3e2ad71 Binary files /dev/null and b/server/entries.db differ