Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

Writing a Simple Java udp portscanner

Thread view: 
robert - 22 May 2006 17:56 GMT
Hi all,

I need to find all the machines on a subnet that have a particular UDP
port open - a snmp program using UDP, not TCP, off of port 8001 but I
suppose that may not matter.

I've seen some full projects but really I'm looking for a simple class
or open source API. I found this one, though a bit dated - need to
check if it can do UDP:

http://groups.google.com.br/group/sac.general/browse_frm/thread/25246ed18c418f48
/717d23edddbb2b38?hl=pt-BR&lr=&ie=UTF-8&oe=UTF-8&rnum=26&prev=/groups%3Fq%3Dport
%2Bscan%2Bjava%26hl%3Dpt-BR%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26start%3D20%26sa%
3DN#717d23edddbb2b38


Any ideas?
Robert
steve - 22 May 2006 22:21 GMT
groups%3Fq%3Dport%2Bscan%2Bjava%26hl%3Dpt-BR%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-
8
> %26start%3D20%26sa%3DN#717d23edddbb2b38

dreadful code

it should be threaded, not scan a host in a loop.

also it needs some stealth code, as any firewall would pick up it's attempt
to port scan.

Steve
EJP - 23 May 2006 01:10 GMT
> Hi all,
>
[quoted text clipped - 5 lines]
> or open source API. I found this one, though a bit dated - need to
> check if it can do UDP:

It can't, and it's a pretty poor attempt anyway. Also it scans all TCP
ports on a single host, the opposite of what you want to do.

Do you know the application protocol that is used on the port? If not,
you can't necessarily do this task *at all*, as you will have to provoke
each UDP server into sending you a reply somehow (there being no UDP
connect protocol).


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.