Books and information on Java Network coding?

Put your programming skills to the test in these challenges.

Books and information on Java Network coding?

Post by Pure_Cadence on Tue Feb 09, 2016 7:39 pm
([msg=91546]see Books and information on Java Network coding?[/msg])

Hi there,

I was wondering if anyone knows any good videos/books on Java network programming. I know the basics of UDP, TCP, sockets, etc but I've never coded an application that goes off to a server.

What language do you use when you code for networking applications? I've tried python but I'm not a fan. I'd be willing to dive more into php if people think its easier than Java.

I'm trying to do programming problem 11 Reverse ASCII shift. I need to send my login info.
User avatar
Pure_Cadence
New User
New User
 
Posts: 17
Joined: Sun Jan 17, 2016 9:31 pm
Blog: View Blog (0)


Re: Books and information on Java Network coding?

Post by -Ninjex- on Wed Feb 10, 2016 10:06 am
([msg=91554]see Re: Books and information on Java Network coding?[/msg])

Normally you would want to use a framework of some type to handle this kind of stuff. Of course you could try and do it all on your own, but it would be more difficult. For Java, a solid framework appears to be HttpCore

I used Ruby to complete all of my programming challenges here, and I used the Mechanize gem for my connections.

I used Ruby as well to complete a challenge our last collaboration at a CTF which required networking, but I didn't use Mechanize. Here is the code for that, if you are interested: CTF (math.rb)
image
For those that know
K: 0x2CD8D4F9
User avatar
-Ninjex-
Moderator
Moderator
 
Posts: 1691
Joined: Sun Sep 02, 2012 8:02 pm
Blog: View Blog (0)


Re: Books and information on Java Network coding?

Post by SuperHacker01 on Wed Apr 20, 2016 11:13 am
([msg=92172]see Re: Books and information on Java Network coding?[/msg])

I think I had to do something like this on one of the programming missions too. I did use python. And actually it's very easy in python. I know what you mean about "not a fan". I never was either, then I spent a few months working on a client/server application in php/python. Python is extremely powerful and can do in just a few lines what other languages take many lines to do. I would urge you to give it a try--especially if you are involved in security.

That being written, there are some nice examples of network type servers out there like DenisDNS--it's a simple DNS server. https://code.google.com/archive/p/denis-dns/ and it's in Java.

It's not quite what you are looking for specifically, but you'll get an idea of how it works.

Apache has a nice one here too: http://hc.apache.org/httpclient-3.x/tutorial.html and this is much more in line with what you want.

Good luck!
SuperHacker01
New User
New User
 
Posts: 4
Joined: Wed Oct 07, 2015 3:24 pm
Blog: View Blog (0)



Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests