Skip to main content

Half Open Syn Scanner

More
20 years 15 hours ago #6057 by devcode
I'm looking for any sources related to Windows Half Open Syn scanning for learning. If anyone can make a simple one or provide one, i'd appreciate it. Thanks.
More
20 years 13 hours ago #6061 by sahirh
Replied by sahirh on topic Re: Half Open Syn Scanner
Check my reply to your PM

Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
More
19 years 11 months ago #6071 by devcode
Replied by devcode on topic Re: Half Open Syn Scanner
heh your syn flooder had a couple of errors in it and i did seem to fix them (compile errors) but overall it ended up crashing the program whenever run.

I am quite new to socket programming and i just wanted a simple source that worked so that i could understand what it was doing.
More
19 years 11 months ago #6072 by devcode
Replied by devcode on topic Re: Half Open Syn Scanner
and strobe is for Linux unfortunately. Thats why i wanted you to code from that syn flooder you already made. heh I would REALLY appreciate it. Thanks.
More
19 years 11 months ago #6076 by sahirh
Replied by sahirh on topic Re: Half Open Syn Scanner
*gasp* My code had compile errors *staggers backwards*.. I normally make it so clean that it won't even spit you a warning ! That said, if you have Windows XP SP2, it might bork my raw sockets.

What exactly were the compile errors you recieved and what did you do to resolve them. Lets see if I can get some time to write a skeleton syn scanner..

Yep strobe and other port scanners are for Linux, but they're written in C / C++ so it doesn't matter.. you can apply the same concepts.
Windows sockets and UNIX sockets programming are the same for all functions except where it starts with a capital letter.. or WSA..

Cheers,

Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
More
19 years 11 months ago #6083 by devcode
Replied by devcode on topic Re: Half Open Syn Scanner
[code:1]
Configuration: pscan2 - Win32 Debug
Compiling...
main.cpp
e:\pscan2\main.cpp(145) : error C2664: 'setsockopt' : cannot convert parameter 4 from 'int *' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
e:\pscan2\main.cpp(154) : warning C4244: '=' : conversion from 'double' to 'unsigned char', possible loss of data
e:\pscan2\main.cpp(155) : warning C4244: '=' : conversion from 'double' to 'unsigned char', possible loss of data
e:\pscan2\main.cpp(156) : warning C4244: '=' : conversion from 'double' to 'unsigned char', possible loss of data
e:\pscan2\main.cpp(157) : warning C4244: '=' : conversion from 'double' to 'unsigned char', possible loss of data
e:\pscan2\main.cpp(158) : error C2664: 'sprintf' : cannot convert parameter 1 from 'unsigned char [7]' to 'char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
e:\pscan2\main.cpp(159) : error C2664: 'inet_addr' : cannot convert parameter 1 from 'unsigned char [7]' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
e:\pscan2\main.cpp(174) : error C2664: 'sendto' : cannot convert parameter 2 from 'unsigned char [4096]' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
e:\pscan2\main.cpp(179) : warning C4508: 'main' : function should return a value; 'void' return type assumed
e:\pscan2\main.cpp(191) : error C2440: '=' : cannot convert from 'unsigned short [32]' to 'unsigned char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.

pscan2.exe - 5 error(s), 5 warning(s)[/code:1]

I believe i just added (char*) before some of them and removed the set limit (such as [4096]) and used unsigned char*.
Time to create page: 0.138 seconds