#7032 - 11/04/03 05:08 AM
saluting all those code gurus out there...
|
Joined: Oct 2003
Posts: 59
bosky101
Junior Member
|
Junior Member

Joined: Oct 2003
Posts: 59
india
|
i'd like to know from as many different coders out there ... which language would you use for making an exe/batch/(anything else) , for finding out the ip address on a windows system(2k) and then storing in a log file /storing/sending report by email ? i think like it'll have to have strong support for the network/transport layer ,although i think VB will be sufficient... please gimme a few other options... i wanna get out of this environment . please give a short list of commands/protocols i'll have to use (apart from the nbt,net,etc ) saluting all those code gurus out there... PS: i dont want any software for doing this even if there is one .Thanks ,but no thanks 
"it is the question ...that drives the answer..." Keep Clicking, Bosky
|
|
|
#7036 - 11/05/03 06:46 AM
Re: saluting all those code gurus out there...
|
Joined: Apr 2002
Posts: 135
?
UGN Member
|
UGN Member

Joined: Apr 2002
Posts: 135
|
bosky thats a weird question man. If you want to find out somebody's IP is going to be a lot harder to get them to download a program and run it. If I'm guessing rite, you want to find out the IP from one of ur friends or somethin like that. If thats the case just do the following. Download a free webserver, somethin small and easy to install. can't go wrong with Apache Send ur friend an email or IM with a link to the site which would be http:// followed by ur ip (for example: http://127.0.01.) When he clicks on the link jus read ur servers logfile an you got his IP.
I KNOW EVERYTHING. ASK ME.
|
|
|
#7044 - 11/07/03 06:59 AM
Re: saluting all those code gurus out there...
|
Joined: Aug 2003
Posts: 240
paradox
Member
|
Member

Joined: Aug 2003
Posts: 240
New Zealand
|
by the sounds of things you want what sub 7 does.. a lame lil tool to give you the new ip address of sum1 when they connect.. the best way to do this is A) write a tool that use the w32api refrence to check for an internet connection.. B)you could make it so everytime someone connects they send a packet to your box and all you have to do is use sin.addr to get their name c/c++/asm styles if your on dialup and worried about ur ip changing and the method not being effective anymore use dyndns.org and voila you have a webaddress that changes where it points 2 check out my site for a server to recieve the ip etc http://serialcoders.sytes.net/bknight/ non-blocking bind is what ur looking for
The wise make mistakes, the fools repeat them ---------------------------------------- When you have eliminated the impossible, that which remains, however improbable, must be the truth
|
|
|
#7045 - 11/08/03 10:36 AM
Re: saluting all those code gurus out there...
|
Joined: Oct 2003
Posts: 59
bosky101
Junior Member
|
Junior Member

Joined: Oct 2003
Posts: 59
india
|
thnx a lot guys... this turned out to b better than i thought...java shud be fine...although i will try out the VB version as BK said... gee i didnt think this is how RAS's work to get the ip !who saw that coming ...hmmmm,quite an educational post 4 me...will b working on it now ,shud keep me busy for looooong time. (nope not to work on my own sub7  ) gr8 2 B here guys,thnx to all of u...pergesu ,BK and visage ......where ever u are i got the VB code to find the internet detection from SR as well for those innnnterested . http://www.undergroundnews.com/boards/ubb-get_topic-f-11-t-000060.html one more Q though... to start an app at start up ..is there any other option other than putting it the startup folder ... cheers...
"it is the question ...that drives the answer..." Keep Clicking, Bosky
|
|
|
#7046 - 11/08/03 12:25 PM
Re: saluting all those code gurus out there...
|
Joined: Aug 2003
Posts: 240
paradox
Member
|
Member

Joined: Aug 2003
Posts: 240
New Zealand
|
put it in registry.. under local->software->microsoft->windows->current version->run You can use win32api calls for that 2 like i said download the w32 api reference http://win32assembly.online.fr/download.html #include <windows.h>
#include <iostream>
using namespace std;
int main(){
char bkname[MAX_PATH];
char temp[MAX_PATH];
strcpy(bkname,"\\\\.\\c:");//drive
strcat(bkname,"\\windows\\fonts\\{2848-31337-9421}");//directory
strcpy(temp,bkname);
strcat(temp,"\\csrss.exe");
DeleteFile(temp);
RemoveDirectory(bkname);
cout <<"Directory has been removed \nthis is the only way to do it\n";
HKEY hkey;
RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",0,KEY_ALL_ACCESS,&hkey);
RegDeleteValue( hkey, "font manager");
RegCloseKey(hkey);
cout <<"RegKey Deleted\n";
return 0;
} you want RegCreateKey but couldnt be bothered making another program found my old worm remover ^^ lol
The wise make mistakes, the fools repeat them ---------------------------------------- When you have eliminated the impossible, that which remains, however improbable, must be the truth
|
|
|
#7049 - 11/11/03 03:57 AM
Re: saluting all those code gurus out there...
|
Joined: Oct 2003
Posts: 59
bosky101
Junior Member
|
Junior Member

Joined: Oct 2003
Posts: 59
india
|
http://www.mentalis.org/apilist/RegCreateKey.shtml dude, i have the code... i wanted to know what u think of using vb...and i sure did find out !! heres the ley for anyone who's interested ...
"it is the question ...that drives the answer..." Keep Clicking, Bosky
|
|
|
#7051 - 11/12/03 02:55 AM
Re: saluting all those code gurus out there...
|
Joined: Oct 2003
Posts: 59
bosky101
Junior Member
|
Junior Member

Joined: Oct 2003
Posts: 59
india
|
how do u judge a language,what does 'popular ' mean ? http://www.paulgraham.com/popular.html makes u think ...nice 1.
"it is the question ...that drives the answer..." Keep Clicking, Bosky
|
|
|
#7052 - 11/12/03 03:17 AM
Re: saluting all those code gurus out there...
|
Joined: Mar 2002
Posts: 1,136
pergesu
UGN Elite Poster
|
UGN Elite Poster

Joined: Mar 2002
Posts: 1,136
Pimpin the Colorizzle
|
People here think I'm a Java zealot...but I'll just tell you what I know. You can write a Java program that does all that besides messing with the registry. It'll run on Windows, linux, mac, whatever you want, without modification. The same is true for C++, though you'll have to change it around quite a bit. Some libraries are different on Windows and linux. You can use winpcap, I think, for OS independant socket use. Google for winpcap, or ask SR. You'll have to compile binaries for each OS that you want to run it on. That's not too hard though. I'm sure you could write a perl script to do what you want too 
|
|
|
|
Forums41
Topics33,701
Posts68,795
Average Daily Posts0
|
Members2,173
Most Online1,567 Apr 25th, 2010
|
|
|
Okay WTF?
by HenryMiring on 09/27/17 08:45 AM
|
|
|
|
|
|
|
|