LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 06-02-2006, 11:46 AM   #1
jusme
LQ Newbie
 
Registered: Sep 2005
Posts: 14

Rep: Reputation: 0
Tiny IP Poster


All,

I've been looking for a few hours now for a tiny footprint IP Poster and have come up with nothing. Here's the specs I'm looking for:

-Posts a dynamic IP address via email on system startup
-Single executable file that requires no installation
-EXE is accompanied by some kind of config file with settings such as where/how to email the dynamic IP

Because this is a single executable with no install, it can be dragged and dropped into the Startup folder, or added to run at startup via the system registry. Does anyone know of something like this? The closest I found was something called 'TacoPost', but it wants to publish an HTML page with the IP information instead of emailing it.

Thanks guys!
 
Old 06-04-2006, 03:47 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
How about this simple shell script?

Code:
ip addr show eth0 | tr ' ' '\n' | grep -A 1 '^inet$' | sed -e '1d' -e 's|/.*$||' | mail -s 'dynamic ip' username@backbone.net
Hope this helps --Jonas
 
Old 06-04-2006, 08:35 PM   #3
jusme
LQ Newbie
 
Registered: Sep 2005
Posts: 14

Original Poster
Rep: Reputation: 0
Sorry, I should be more clear about a couple things. The first is that I posted this in the Non-*nix Forums because I was looking for a Windows executable that runs on Win32-based systems. Secondly, this is designed to be remotely installed and report back to a central server (in the form of an email), I know very well how to find/report my own IP.

Last edited by jusme; 06-05-2006 at 10:25 AM.
 
Old 06-05-2006, 03:54 AM   #4
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Reading your post more closely, you sorta' hint at you wanting something for win32 systems. In that case, I've got nay idea. First you say you want it to send an email, now you say you want it to "report back to a central server". You may want to clarify exactly what it is you want.

My second idea for a solution would be to pipe the output of ipconfig (I think) through sed into an mta, but that requires you to install sed and an MTA.

If you know a netmask that matches exactly the dynamic IPs you're interested in, you could also set up a daemon on the central server which listens for TCP connections, sends a random challenge and, if the client reports back with a "proper" answer, reports the address of the client to you. That requires you to keep a private key private on the client machine, though (either by trusting all their users, or by doing the windows equivalent of `chmod go-r privkey').

Should be fairly easy to implement with a decent crypto library.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Kernel Wall Poster? Mr Chavez Linux - General 6 04-19-2011 01:08 AM
Poster can not delete his own post fancypiper LQ Suggestions & Feedback 24 12-16-2008 09:31 AM
New Poster kmack1023 LinuxQuestions.org Member Intro 3 04-04-2005 05:28 PM
I want to download a linux Poster danilomoretto General 1 11-28-2004 11:14 AM
Newsgroup poster Colonel Kurtz Linux - Software 1 09-02-2003 01:59 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration