Click here to Skip to main content
15,895,823 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Callback Function for Timers in VC6......?? Pin
AmbiguousName18-Nov-10 9:45
AmbiguousName18-Nov-10 9:45 
GeneralRe: Callback Function for Timers in VC6......?? Pin
CPallini18-Nov-10 9:59
mveCPallini18-Nov-10 9:59 
GeneralRe: Callback Function for Timers in VC6......?? Pin
Stephen Hewitt18-Nov-10 17:49
Stephen Hewitt18-Nov-10 17:49 
GeneralRe: Callback Function for Timers in VC6......?? Pin
«_Superman_»18-Nov-10 10:11
professional«_Superman_»18-Nov-10 10:11 
AnswerRe: Callback Function for Timers in VC6......?? Pin
Stephen Hewitt18-Nov-10 17:47
Stephen Hewitt18-Nov-10 17:47 
QuestionMAPISendMail fails with error 2 on Microsoft Outlook 2003 with Win XP Pin
Rajesh_Parameswaran18-Nov-10 3:54
Rajesh_Parameswaran18-Nov-10 3:54 
QuestionRe: MAPISendMail fails with error 2 on Microsoft Outlook 2003 with Win XP Pin
David Crow18-Nov-10 5:31
David Crow18-Nov-10 5:31 
QuestionGet Port Banner? Pin
ALLERSLIT18-Nov-10 3:17
ALLERSLIT18-Nov-10 3:17 
Hey,
I need to earn some points in my IT class and thought about writing a tool that would tell you what runs on a specific port, in this case port 80.
Now it would most likely be a webserver, finding that out is no problem by checking for specific strings such as "" etc..
My problem is though, I would like to know what kinda Webserver runs on that port.
How would I do that?
Unfortunately the replies are not really formated, so its really hard to filter it out.
Example:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Bad request!</title>
<link rev="made" href="mailto:admin@eightzerodigital.com" />
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
    body { color: #000000; background-color: #FFFFFF; }
    a:link { color: #0000CC; }
    p, address {margin-left: 3em;}
    span {font-size: smaller;}
/*]]>*/--></style>
</head>

<body>
<h1>Bad request!</h1>
<p>


    Your browser (or proxy) sent a request that
    this server could not understand.

</p>
<p>
If you think this is a server error, please contact
the <a href="mailto:admin@eightzerodigital.com">webmaster</a>.

</p>

<h2>Error 400</h2>
<address>
  <a href="/">cre8.eightzerodigital.com</a><br />

  <span>18/11/2010 14:04:15<br />
  Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color
PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1</span>
</address>
</body>
</html>



is what I recv() when i send() to 109.70.146.167 on port 80.

That does not actually help me though, as the banner is not always the last message..
Sometimes the banner is not even in it at all..

65.39.148.34 on port 80
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/str
ict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>

I did some google digging and found out about certain tools that would grab the banner such as Acunetix Vulnerability Scanner, atleast for http server it grabs EVERY banner.
Any suggestions?
AnswerRe: Get Port Banner? Pin
Richard MacCutchan18-Nov-10 3:21
mveRichard MacCutchan18-Nov-10 3:21 
GeneralRe: Get Port Banner? Pin
ALLERSLIT18-Nov-10 3:22
ALLERSLIT18-Nov-10 3:22 
GeneralRe: Get Port Banner? Pin
Richard MacCutchan18-Nov-10 3:33
mveRichard MacCutchan18-Nov-10 3:33 
GeneralRe: Get Port Banner? Pin
ALLERSLIT18-Nov-10 3:53
ALLERSLIT18-Nov-10 3:53 
GeneralRe: Get Port Banner? Pin
Richard MacCutchan18-Nov-10 5:00
mveRichard MacCutchan18-Nov-10 5:00 
GeneralRe: Get Port Banner? Pin
Moak18-Nov-10 7:11
Moak18-Nov-10 7:11 
QuestionHow to set keyboard focus to the other windows in the z-order? Pin
Joseph Marzbani18-Nov-10 3:14
Joseph Marzbani18-Nov-10 3:14 
AnswerRe: How to set keyboard focus to the other windows in the z-order? Pin
Richard MacCutchan18-Nov-10 3:24
mveRichard MacCutchan18-Nov-10 3:24 
QuestionLook of GUI Layout depending on Unicode or not. Pin
Arv Carsen17-Nov-10 21:42
Arv Carsen17-Nov-10 21:42 
AnswerRe: Look of GUI Layout depending on Unicode or not. Pin
KingsGambit17-Nov-10 23:19
KingsGambit17-Nov-10 23:19 
AnswerRe: Look of GUI Layout depending on Unicode or not. Pin
krmed18-Nov-10 0:42
krmed18-Nov-10 0:42 
GeneralRe: Look of GUI Layout depending on Unicode or not. Pin
Arv Carsen15-Dec-10 1:13
Arv Carsen15-Dec-10 1:13 
GeneralRe: Look of GUI Layout depending on Unicode or not. Pin
«_Superman_»18-Nov-10 9:09
professional«_Superman_»18-Nov-10 9:09 
Questionwhere can download the emule source code with the reliant library? Pin
yu-jian17-Nov-10 20:26
yu-jian17-Nov-10 20:26 
QuestionDraw using GDI+ Pin
john563217-Nov-10 19:40
john563217-Nov-10 19:40 
AnswerRe: Draw using GDI+ Pin
S p k 52118-Nov-10 0:00
S p k 52118-Nov-10 0:00 
QuestionSecure ,Portable char array functions ? Pin
VC_RYK17-Nov-10 16:26
VC_RYK17-Nov-10 16:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.