Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Networks on April 12, 2004, 05:52 PM

Title: Inet Help
Post by: Networks on April 12, 2004, 05:52 PM
I just would like to know how to use Inet. I'd like to know everything about it or at least enough for me to able to log entries through an application: basically Just exporting to a html file to make tables telling who uses my bot, what channel, time, version etc.

Any sufficient help in making this capable for me would be much appreciated.
Title: Re:Inet Help
Post by: Grok on April 12, 2004, 09:04 PM
Quote from: Networks on April 12, 2004, 05:52 PM
I just would like to know how to use Inet. I'd like to know everything about it or at least enough for me to able to log entries through an application: basically Just exporting to a html file to make tables telling who uses my bot, what channel, time, version etc.

Any sufficient help in making this capable for me would be much appreciated.

Fair question.  From reading the above, I believe you have already in your possession a bot written in Visual Basic, and you would like to add a feature to it that logs output to a web page, ala Webbot.  Is this correct?

If so, is the bot running on the web server, or are they different PCs?  Your answer will affect the rest of the design.
Title: Re:Inet Help
Post by: Networks on April 13, 2004, 08:57 AM
No not a webbot, sorry you have misenterpeted but what I was looking to just to log users who use my bot. Outputting it to a Webpage basically stating: the username, home channel, & time for who is using the bot.

Simply want to see who actually uses it and other info but not as a backdoor of any sort.
Title: Re:Inet Help
Post by: Tuberload on April 13, 2004, 10:07 AM
Quote from: Networks on April 13, 2004, 08:57 AM
No not a webbot, sorry you have misenterpeted but what I was looking to just to log users who use my bot. Outputting it to a Webpage basically stating: the username, home channel, & time for who is using the bot.

Simply want to see who actually uses it and other info but not as a backdoor of any sort.

Both can be done in pretty much the same manner. If I am not mistaken, Grok was asking you a question so that he could help you with your problem.
Title: Re:Inet Help
Post by: Grok on April 13, 2004, 01:01 PM
Probably a UDP transmit to your listening web server then.  Run a service there to receive the logon packets and record to a disk file as a delimited line item, tabs would be easy.  Then write a web page (ASP, Java, or (eww) PHP) to parse the text file when you want to view the data.
Title: Re:Inet Help
Post by: Networks on April 13, 2004, 01:26 PM
Is there anything really simple I could do using Inet? Could you help me or show me an example?
Title: Re:Inet Help
Post by: Grok on April 13, 2004, 02:20 PM
Quote from: Networks on April 13, 2004, 01:26 PM
Is there anything really simple I could do using Inet? Could you help me or show me an example?

What do you mean "using Inet"?  What is Inet in this context?  The Internet?
Title: Re:Inet Help
Post by: Eli_1 on April 13, 2004, 02:31 PM
Quote from: Grok on April 13, 2004, 02:20 PM
Quote from: Networks on April 13, 2004, 01:26 PM
Is there anything really simple I could do using Inet? Could you help me or show me an example?

What do you mean "using Inet"?  What is Inet in this context?  The Internet?

I think he means Microsoft's "Internet Transfer Control" (MSINET.OCX).
Title: Re:Inet Help
Post by: Networks on April 13, 2004, 05:33 PM
bingo!
Title: Re:Inet Help
Post by: CrAz3D on April 13, 2004, 07:51 PM
1)Create a php script that logs info to webpage/txt document on a webserver.
2)Execute the phpscript with Inet & send the info you want to log
Title: Re:Inet Help
Post by: Dyndrilliac on April 13, 2004, 10:16 PM
Public Declare Function FtpFindFirstFile Lib "wininet.dll" Alias "FtpFindFirstFileA" _
(ByVal hFtpSession As Long, ByVal lpszSearchFile As String, _
     lpFindFileData As WIN32_FIND_DATA, ByVal dwFlags As Long, ByVal dwContent As Long) As Long

Public Declare Function FtpGetFile Lib "wininet.dll" Alias "FtpGetFileA" _
(ByVal hFtpSession As Long, ByVal lpszRemoteFile As String, _
     ByVal lpszNewFile As String, ByVal fFailIfExists As Boolean, ByVal dwFlagsAndAttributes As Long, _
     ByVal dwFlags As Long, ByVal dwContext As Long) As Boolean

Public Declare Function FtpPutFile Lib "wininet.dll" Alias "FtpPutFileA" _
(ByVal hFtpSession As Long, ByVal lpszLocalFile As String, _
     ByVal lpszRemoteFile As String, _
     ByVal dwFlags As Long, ByVal dwContext As Long) As Boolean
Title: Re:Inet Help
Post by: Networks on April 14, 2004, 08:55 AM
I dont know PHP :(
Title: Re:Inet Help
Post by: synth on April 14, 2004, 09:17 AM
You could also use ASP.  Now might be a good time to learn one of the two.  It'll serve you well.
Title: Re:Inet Help
Post by: Networks on April 14, 2004, 01:24 PM
Is there no other way of exporting it to HTML using the msinet.ocx control?

Man I wanted an easy way to do it...Guess not

Maybe I'll just have to learn Php
Title: Re:Inet Help
Post by: Grok on April 14, 2004, 01:36 PM
Quote from: Networks on April 14, 2004, 01:24 PMMaybe I'll just have to learn

I removed all but the important parts of what you said.
Title: Re:Inet Help
Post by: Networks on April 14, 2004, 05:08 PM
lol...okie dokie then thats fair ;)
Title: Re:Inet Help
Post by: Networks on April 16, 2004, 08:55 AM
Is there any simple way to log anything with inet?
Title: Re:Inet Help
Post by: CrAz3D on April 17, 2004, 04:13 PM
Quote from: Networks on April 16, 2004, 08:55 AM
Is there any simple way to log anything with inet?
<?
$td = date("F jS");
   $ip = $REMOTE_ADDR; // Set the variable as their ip address
   $fh = fopen("iplog.htm",'a+'); // Open the text file and tell it to add
   fputs($fh, "$ip : $td<br>"); // Add the ip address onto the next line
   fclose($fh); // Close the text file

?>


That would log the IP of the user accessing that "page"
Title: Re:Inet Help
Post by: Eli_1 on April 18, 2004, 04:55 PM
Quote from: Networks on April 16, 2004, 08:55 AM
Is there any simple way to log anything with inet?
1.) This is the Visual Basic Programming forum.
2.) He want's to know if you can do it using Microsoft's Internet Transfer control, as stated more than once in the thread.
Title: Re:Inet Help
Post by: CrAz3D on April 18, 2004, 10:47 PM
I guess if ALL of my posts were read my last would make more sense.

(VB Project)
Inet1.Execute "http://WHAT EVER/log.php"


(log.php)
<?
$td = date("F jS");
   $ip = $REMOTE_ADDR; // Set the variable as their ip address
   $fh = fopen("iplog.htm",'a+'); // Open the text file and tell it to add
   fputs($fh, "$ip : $td<br>"); // Add the ip address onto the next line
   fclose($fh); // Close the text file

?>
Title: Re:Inet Help
Post by: FuzZ on April 22, 2004, 01:26 AM
I didn't feel like reading all those posts.
I do this as well
http://www.bloodynub.com/botlists/showbots.php

I use a simple get method through PHP which is probably going to have to be changed due to the interpretation of "+" by PHP as a space.

But, It's pretty simple if you don't want a response to the bot
just inet.execute "UrL", "method"

Stealth or someone posted this or I wouldn't have been able to do it.

If you want my PHP Script I'd be glad to donate it, just don't make fun of my crappy PHP Coding :P

(Note: uses a MySQL database.)
Title: Re:Inet Help
Post by: Networks on April 22, 2004, 05:04 PM
I want anything like that but I dont really want it using a MySQL DB if its possible =\
Title: Re:Inet Help
Post by: FuzZ on April 23, 2004, 05:27 PM
Well, if you know any PHP you might be able to get the basic idea behind it, let me go zip it up and I'll edit the post with it.

Edit-> http://www.bloodynub.com/files/index.php?dir=bnet/bots/development/&file=botdisplay.zip

Contents: showbots.php, addbot.php, bots.css, include.php (For MySQL)
Title: Re:Inet Help
Post by: dodge on April 28, 2004, 03:32 PM
Grok: just asking.. don't like php? That sucks becuase thats what i use  ??? lol