• What Are You Working On Jan 2013
    1,974 replies, posted
[QUOTE=cartman300;39135239]xD[/QUOTE] I hate to be that guy but please don't do this
Hey guys. How would I go about making a proxy application that processed packets from a certain server before forwarding them on the the application they were meant for. I need to be able to change them as well. Perl tells me I can inject the application and hook into it's connect and stuff but that sounds a bit to invasive for me. Also, I have no idea how to do any of those things. He also mentioned WinPCap as an option but apparently it's very low level. Ideally, I'd like to have the program not do anything to the application it's proxying AND have the ability to read packets at a high enough level that I don't need to assemble chat strings manually. My intentions aren't malicious. The program would only be used by me (and the people who want it) to additionally censor the ingame chat in LoL.
[QUOTE=cartman300;39135239] [code]If ("A"="B) then Console.WriteLine("It Works!") End If[/code] It doesn't work because there's no plug for Object.Equals() xD[/QUOTE] It doesn't work because you forgot a double quote behind 'B' in the first place :v:
[QUOTE=ZaroX;39135577]It doesn't work because you forgot a double quote behind 'B' in the first place :v:[/QUOTE] The point was it wouldn't work even if the quote had been there
[QUOTE=cartman300;39135239]Yeah, but this is not .NET anymore, it's being translated to Assembly and then compiled and packed into .iso, no Windows API calls, that means every .NET function needs to be pluged with Assembly and not all of them are pluged that's why some stuff doesn't work. It's the same reason as when i write it in Visual Basic and it throws errors when i do something like [code]If ("A"="B) then Console.WriteLine("It Works!") End If[/code] It doesn't work because there's no plug for Object.Equals() xD[/QUOTE] Ohh, gotcha.
[QUOTE=Darwin226;39135558]Hey guys. How would I go about making a proxy application that processed packets from a certain server before forwarding them on the the application they were meant for. I need to be able to change them as well. My intentions aren't malicious.[/QUOTE] Not going to lie, that sounds really malicious
[QUOTE=The freeman;39136003]Not going to lie, that sounds really malicious[/QUOTE] Intercepting inbound traffic mostly sounds like he's trying to make a client do something it's not supposed to do without instructions from the server
[QUOTE=Darwin226;39135558]Hey guys. How would I go about making a proxy application that processed packets from a certain server before forwarding them on the the application they were meant for. I need to be able to change them as well. Perl tells me I can inject the application and hook into it's connect and stuff but that sounds a bit to invasive for me. Also, I have no idea how to do any of those things. He also mentioned WinPCap as an option but apparently it's very low level. Ideally, I'd like to have the program not do anything to the application it's proxying AND have the ability to read packets at a high enough level that I don't need to assemble chat strings manually. My intentions aren't malicious. The program would only be used by me (and the people who want it) to additionally censor the ingame chat in LoL.[/QUOTE] There are very little locations in the windows networking pipeline where you can intercept packages and read their actual content. There are a few places in the kernel where packages can be intercepted (like WinPCap does) But this is very low level, and a complete overkill for your means. The best easiest and fastest solution will be exactly what Perl suggested. - Inject binary in to application memory space (dll injector) - Hook winsock recv function(s) ([url]http://research.microsoft.com/en-us/projects/detours/[/url]) - Check packages and edit where needed. I can promise you there are hundreds of firewalls and antiviruses(and other crap) who hook/touch those exact same functions in exactly the same way. EDIT: [url]http://en.wikipedia.org/wiki/Hooking#API.2FFunction_Hooking.2FInterception_Using_JMP_Instruction[/url] EDIT2: [sp]If i was you, i wouldn't hook the networking for this, but inline hook the chatbox, but that requires a whole kind of different expertise[/sp]
-snip- DUMB DUMB DUMB DUMB DUMB DUMB DUMB! [img]http://puu.sh/1L0bv[/img] Do it.
[QUOTE=sambooo;39135403]I hate to be that guy but please don't do this[/QUOTE] xD is my way of saying lol, and the fact that that piece of code doesn't work is funny to me, so i don't see the point of what you wrote.
Detours. OldFusion is right. [QUOTE=cartman300;39136265]xD is my way of saying lol, and the fact that that piece of code doesn't work is funny to me, so i don't see the point of what you wrote.[/QUOTE] It's just frowned upon, and some people are annoyed by it. Sometimes it even incapacitates them with the horrible memory of going to Facebook or 9GAG.
So I released my program to the public a couple days ago and it's only being used by less than 0.2% of my targeted userbase. [IMG]http://cf.sketchfu.com/i/5533967_thumb.png[/IMG] But the few people using it are really supportive and made working on it worth it! :dance:
[QUOTE=false prophet;39136357]So I released my program to the public a couple days ago and it's only being used by less than 0.2% of my targeted userbase. [IMG]http://cf.sketchfu.com/i/5533967_thumb.png[/IMG] But the few people using it are really supportive and made working on it worth it! :dance:[/QUOTE] Around 0.2% uptake is a pretty standard figure. It's also the average conversion rate between a paid and an unpaid app.
0.2% out of a targeted userbase of 3500 for a free program
[IMG]http://i.imgur.com/D3Wdr.png[/IMG] Currently looking for nifty sprites.
[QUOTE=false prophet;39136510]0.2% out of a targeted userbase of 3500 for a free program[/QUOTE] ...Seven people?
[QUOTE=Tamschi;39115527]I found a way to call operators on generic variables that may or may not be terrible: [csharp]matrix[zeile][spalte] != default(T) as dynamic[/csharp] Interestingly, the above code works as expected, while this: [csharp]ergebnis[zeile][spalte] += (a[zeile][summand]) * (b[summand][spalte] as dynamic)[/csharp] ...calls [I]public static StringDing operator *(StringDing a, object b)[/I] instead of [I]public static StringDing operator *(StringDing a, StringDing b)[/I], same with the + operator.[/QUOTE] I asked about this on Stack Overflow and got an answer from Eric Lippert. [URL="http://stackoverflow.com/questions/14185990/dynamic-operator-resolution/14189961#14189961"]It turns out this is by design[/URL], the strange behaviour occurs because the CallSite only looks for methods that could have been called by casting to a class type, but ignores types inaccessible at the call site, even if the type parameter makes the cast statically possible.
[img]http://puu.sh/1L2W1[/img] I've brought Lime Script and Lua together and got LimeLua. It can execute both Lime Script and Lua script, and even mix them together. All written in .NET, will be released this week.
[QUOTE=cody8295;39136548][IMG]http://i.imgur.com/D3Wdr.png[/IMG] Currently looking for nifty sprites.[/QUOTE] lel holocaust so fanny
Working on a random Jewish name generator for Holocaust Tycoon. Currently there are over 6 million possibilities. [IMG]http://i.imgur.com/UMAk0.png[/IMG]
Is programming in game maker respectable yet?
[QUOTE=MadPro119;39138614]Is programming in game maker respectable yet?[/QUOTE] Who cares what it's made in, if the project's cool then it's cool. Post it!
[QUOTE=Chris220;39138636]Who cares what it's made in, if the project's cool then it's cool. Post it![/QUOTE] Thanks, no project yet. I used Game Maker for about 3 years 5 years ago. Doing Java in school and sense done C# with XNA (not too good). I have the urge to make games just for fun and was wondering whether its worth it to take the bits of time to relearn it.
[QUOTE=MadPro119;39138614]Is programming in game maker respectable yet?[/QUOTE] I don't think it's a case of it being respectable or not, there's just very little reason to when it's easier to make stuff from scratch.
[QUOTE=laylay;39138742]I don't think it's a case of it being respectable or not, there's just very little reason to when it's easier to make stuff from scratch.[/QUOTE] What does from scratch mean? As in like using a graphical library with C++ or something? [editline]7th January 2013[/editline] Because one thing I like about game maker is how simple the... pipeline(?) is. A few clicks you can add a sprite/picture. A few more clicks and you have an easy animation. Easy rooms that can store information. I don't know... I'm tired.
[QUOTE=MadPro119;39138784]What does from scratch mean? As in like using a graphical library with C++ or something?.[/QUOTE] Nah, assembly of course! You gotta start real low level, man.
[QUOTE=T3hGamerDK;39138868]Nah, assembly of course! You gotta start real low level, man.[/QUOTE] This is how from scratch confuses me. Its arguably more impressive to start from scratch but noone tells someone utilizing unreal engine to make it from scratch. Or is this a bad example? [editline]7th January 2013[/editline] Especially when Game Maker programs can now be ran on Mac, Windows, Android, iOS, and HTML5.
[QUOTE=T3hGamerDK;39138868]Nah, assembly of course! You gotta start real low level, man.[/QUOTE] [img]http://i46.tinypic.com/3097a7m.png[/img] Yolo
[QUOTE=MadPro119;39138784]What does from scratch mean? As in like using a graphical library with C++ or something? [editline]7th January 2013[/editline] Because one thing I like about game maker is how simple the... pipeline(?) is. A few clicks you can add a sprite/picture. A few more clicks and you have an easy animation. Easy rooms that can store information. I don't know... I'm tired.[/QUOTE] Sure. By scratch I just mean C++ and OpenGL or something. Right now it might seem hard to get a sprite down but if you know how to do it yourself then it opens up a lot of possibilities. I don't like giving advice so take it or leave it, I just can't find any reason why you'd restrict yourself to something like gamemaker.
[QUOTE=laylay;39139089]Sure. By scratch I just mean C++ and OpenGL or something. Right now it might seem hard to get a sprite down but if you know how to do it yourself then it opens up a lot of possibilities. I don't like giving advice so take it or leave it, I just can't find any reason why you'd restrict yourself to something like gamemaker.[/QUOTE] Something like love (love2d.org) could actually be more suitable for entry level game programming.
Sorry, you need to Log In to post a reply to this thread.