I have programmed a little port scanner in VB6, using the winsock control....
I can scan myself, and all in my local network... meaning all computers on the LAN, if anybody should be wondering...
But when i try to scan my friend, i get nothing....
can anybody tell me why ?
Just ask for a little more info...
/Jeffrey
ComSec
Dec 2 2003, 09:30 PM
have you tried debug... ..and step into etc...see if that pinpoints your problem
Jeffrey
Dec 2 2003, 09:33 PM
I have tried to debug, looked all of the code through again and again....
Had one of my friends to look it through to.... Nothing....
Getting quite angry at the progy!
ComSec
Dec 2 2003, 09:36 PM
nothing blocking like firewalls , routers...will your server allow for scanning other than lan
Jeffrey
Dec 2 2003, 09:38 PM
Hmmm.m..... It's a great argument, for the prog not to work ...! But the prog, have FULL access through the firewall, but i'll try to kill the firewall, for a second and scan....
EDIT : Damn.... I'm not going to try to scan..... haven't got anybody to scan .....
/Jeffrey
ComSec
Dec 2 2003, 09:44 PM
scan your friends IP ....if you have already then he wont mind...will he ?
btw.. ping the target to make sure they are up before you scan
Jeffrey
Dec 2 2003, 09:47 PM
No, he wouldn't.... But he's offline.... Well, i'll try tomorrow...
It's just weird.... All the other things, i have made in VB6, uing socket programming works totally fine over inet....
/Jeffrey
ComSec
Dec 2 2003, 09:52 PM
used both winsock and inet in some stuff i tinkered with and no problems upto now
let us know how you get on tomorrow
good luck
Jeffrey
Dec 2 2003, 09:56 PM
Thx for the answers dude!
I'll keep posting...
/Jeffrey
ComSec
Dec 2 2003, 09:58 PM
no prob
some of our more experienced coders here might be able to pinpoint the problem for you...we have quite a few who know the score
take care
SlippyG
Dec 3 2003, 01:12 AM
QUOTE (ComSec @ Dec 2 2003, 09:58 PM)
no prob
some of our more experienced coders here might be able to pinpoint the problem for you...we have quite a few who know the score
take care
There isn't actualy any code to discuss. I don't know whether hes using the standard winsock control or calling the API, using simple TCP connection attempts or using IPPROTO_RAW to do a stealth scan and looking for RSTs, polling with select(), callbacks, windows messages... well, you get the idea.
All I know is that hes using vb6, and thats not much of a clue.
Personaly I'd say this ISN'T a coding issue. What are other simple (non-stealth) scanners getting from your friend? Could it be the firewall at the remote side?
Either that or its a perceptual problem. If you are using VB6 then you are probably using the winsock control and using TCP to attempt connection. This is a VERY poor solution and will only warn you about LISTENING ports that ACCEPT your connection request. This will be very few (perhaps none) of the active ports on the remote side.
SG
lmg
Dec 3 2003, 09:35 AM
Try to scan you friend's host using a known scanner, like nmap. At least, you'll see if problem come from system (firewall, proxy) or your code.
SlippyG
Dec 3 2003, 09:56 AM
QUOTE (lmg @ Dec 3 2003, 09:35 AM)
Try to scan you friend's host using a known scanner, like nmap. At least, you'll see if problem come from system (firewall, proxy) or your code.
Sorry, I thought I'd suggested that. But then I'm a girl so what would I know *lick*
SG
ComSec
Dec 3 2003, 12:31 PM
QUOTE
But then I'm a girl so what would I know
well SlippyG...more than most from what i can see from your vb reply and to be honest i only started to mess with code serious a few months back , after trying various languages in the past.
ATM am looking into D++ very interesting and easy to follow to add to my collection ... am no expert in any code section..
but i have created a few programs in VB , Perl , etc and at present have a network tool at beta stage created from various free source code examples that i modified as a learning process and fine tuned by a friend here at the forum ...see screenshot....
so if i get stuck....perhaps you can help me also
lmg
Dec 3 2003, 01:59 PM
QUOTE (SlippyG @ Dec 3 2003, 11:56 AM)
QUOTE (lmg @ Dec 3 2003, 09:35 AM)
Try to scan you friend's host using a known scanner, like nmap. At least, you'll see if problem come from system (firewall, proxy) or your code.
Sorry, I thought I'd suggested that. But then I'm a girl so what would I know *lick*
SG
Hum sorry miss ! I have the flu so... But I saw your personnal informations, and your favorite activity... Please, don't flame me
coder
Dec 3 2003, 02:07 PM
if you really want to know what's going on , i'd suggest you use a Packet Sniffer to view all the data that you/winsock are making... you will also be able to see all of the responses to your scans, etc... it's a must for any serious network programmer...
Jeffrey
Dec 3 2003, 03:02 PM
SlippyG >
I'm using the standard Winsock control..... Yes, i know it's ain't the best..... in fact.... It's the worst... But wtf...
Ain't anything serious with the programs.... Just something little testing thing.... Don't ask me... I'm crazy....
/Jeffrey
Ps. Why all the licking ???
SlippyG
Dec 3 2003, 05:18 PM
QUOTE (Jeffrey @ Dec 3 2003, 03:02 PM)
SlippyG >
I'm using the standard Winsock control..... Yes, i know it's ain't the best..... in fact.... It's the worst... But wtf...
Ain't anything serious with the programs.... Just something little testing thing.... Don't ask me... I'm crazy....
/Jeffrey
Ps. Why all the licking ???
Well, if you're using the Winsock control and it works against your local machine then there is not likely to be anything wrong with the code It should work on a remote address too.
It realy does sound like either a firewall issue (Either yours or theirs) or that there are no listening ports accepting your connection requests at the other side. Maybe your simplest method of verifying this would be to just telnet to the remote IP/port to verify that it is answering ... If you can telnet in then your code SHOULD also be able to connect and should register the connection.
If you can't telnet it then it simply isnt open Which would explain a lot.
If you can, but your code doesnt register it, then its likely you have a code issue.
SG (okay, okay, I've stopped with the licking.)
Jeffrey
Dec 3 2003, 07:26 PM
Hey SlippyG!
Thanks for the answer [Hmmm ?.... I can't say dude, to this chick... ] girl...
It works local, and i tried shutting down my firewall, but still nothing..... I haven't tried telnetting it yet, but i'll give it a go....
I'll keep posting...
ey, and thx for the licking stopped.... Ain't funny getting slobber all over me...
/jeffrey
TeCH-NiNE
Dec 5 2003, 03:40 AM
its only an idea: has your friend a firewall? probably his fw blocks pings
Jeffrey
Dec 6 2003, 07:24 PM
I have checked that, he got a firewall, and... i think it's probaly the problem.... But, when scanning myself from another computer on the local network, WITH my firewall (ZoneAlarm) turned on "Medium", i still get my open ports.... ....
SLiM577
Dec 6 2003, 07:53 PM
intereesting post thanks mates.
Jeffrey
Dec 14 2003, 07:58 PM
Slim >>> Thx.....
btw.... I still haven't got the scanner working.... But still trying...
Best Regards
Jeffrey
Faceless Master
Jan 10 2004, 11:44 AM
QUOTE (Jeffrey @ Dec 2 2003, 09:21 PM)
Hey Guys & Girls....
I have programmed a little port scanner in VB6, using the winsock control....
I can scan myself, and all in my local network... meaning all computers on the LAN, if anybody should be wondering...
But when i try to scan my friend, i get nothing....
can anybody tell me why ?
Just ask for a little more info...
/Jeffrey
Well, You can download some scanner source form ma site http://www.facelessmaster.tk Hope they help Have fun ~Faceless Master
Jeffrey
Jan 10 2004, 06:07 PM
Needed to be a member....
Don't wanna become a member....
But thx anyway dude...
/Jeffrey
Faceless Master
Jan 11 2004, 05:10 PM
QUOTE (Jeffrey @ Jan 10 2004, 06:07 PM)
Needed to be a member....
Don't wanna become a member....
But thx anyway dude...
/Jeffrey
You are welcome.. Regards ~Faceless Master
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.