UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
August
Su M Tu W Th F Sa
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Sponsored Links
Latest Postings
Latest Reviews
Page 1 of 3 1 2 3 >
Topic Options
Rate This Topic
#7032 - 11/04/03 05:08 AM saluting all those code gurus out there...
bosky101 Offline
Junior Member

Registered: 10/01/03
Posts: 59
Loc: 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

Top
Sponsored Links
      
#7033 - 11/05/03 01:06 AM Re: saluting all those code gurus out there...
placid fire Offline
Junior Member

Registered: 10/27/03
Posts: 18
HI sorry this has nothing to do wiv that question but i was wondering if anyone could help. My computer seems to have contracted a virus. I have scanned wiv avg and the virus is called worm/spybot. what is it? . does anyone know how to delete it because avg cant heal it or delete it or even contain it.
thankyou

Top
#7034 - 11/05/03 02:00 AM Re: saluting all those code gurus out there...
bosky101 Offline
Junior Member

Registered: 10/01/03
Posts: 59
Loc: india
check out
http://securityresponse.symantec.com/avcenter/venc/data/w32.spybot.worm.html
and try sticking to the correct forum/post next time
_________________________
"it is the question ...that drives the answer..."
Keep Clicking,
Bosky

Top
#7035 - 11/05/03 06:03 AM Re: saluting all those code gurus out there...
pergesu Offline
UGN Elite Poster

Registered: 03/14/02
Posts: 1136
Loc: Pimpin the Colorizzle
Placid fire, if you've got a question that isn't relevant to the topic at hand, make your own post. And don't reply here saying sorry or somethin, or explaining why you did what you did. If you've got something to contribute to this thread, otherwise just shut up and post elsewhere.

Top
#7036 - 11/05/03 06:46 AM Re: saluting all those code gurus out there...
? Offline
UGN Member

Registered: 04/30/02
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.

Top
#7037 - 11/05/03 12:27 PM Re: saluting all those code gurus out there...
Asteos Offline
Member

Registered: 03/04/02
Posts: 217
Loc: Nadia
that's a great suggestion ?. Windows even comes with it's own webserver you could use.
_________________________
=~ s/boredom/ studies/g

Top
#7038 - 11/06/03 04:47 AM Re: saluting all those code gurus out there...
bosky101 Offline
Junior Member

Registered: 10/01/03
Posts: 59
Loc: india
thnx..im almost there...but have a few more queries.
assume i go online on my pc ,and want to know the ip from say a cybercafe....i can write an app to find the ip and then email it ...
is there anyway i can know automatially when i am online ..so that i can run a batch file or something..

so i have 3 tasks here:
1 . detecting when an internet connection starts
2 . finding the ip ( mind u,its a dial up connection )
3 . sending it by email with the new ip

i can figure out 2 and 3 .
what are the ways i can do 1 ?

do i need to firstly make some changes to autoexec.bat so that it runs this app at start up or is there any chance that the app can start ONLY when an internet connecion starts.
_________________________
"it is the question ...that drives the answer..."
Keep Clicking,
Bosky

Top
#7039 - 11/06/03 05:04 AM Re: saluting all those code gurus out there...
pergesu Offline
UGN Elite Poster

Registered: 03/14/02
Posts: 1136
Loc: Pimpin the Colorizzle
Run an IRC client on your machine (the one to find when it's online) and set it to automatically connect to irc.undergroundnews.com when an internet connection is present. Then you can connect to IRC from where you are, and lookup yourself.

Top
#7040 - 11/06/03 05:59 AM Re: saluting all those code gurus out there...
bosky101 Offline
Junior Member

Registered: 10/01/03
Posts: 59
Loc: india
any way other than irc...(until i get familiarr with it )
i wanted the ip to get across automatically...

would the irc client be able to load as soon as im online ?

coz this is what i want ...
_________________________
"it is the question ...that drives the answer..."
Keep Clicking,
Bosky

Top
#7041 - 11/06/03 08:14 AM Re: saluting all those code gurus out there...
pergesu Offline
UGN Elite Poster

Registered: 03/14/02
Posts: 1136
Loc: Pimpin the Colorizzle
There's a way in Windows to run certain programs as soon as a network connection is detected. You could also write a program that continually loads http://www.whatismyip.com, parses it, and sends it to you. Or contintually run ipconfig or something, and when it gives an up other than 127.0.0.1, send it to you.

Top
#7042 - 11/07/03 03:19 AM Re: saluting all those code gurus out there...
bosky101 Offline
Junior Member

Registered: 10/01/03
Posts: 59
Loc: india
parsing in vb...i found links on vb.net and tons on parsing using java,and lotta open source ...

i'll try the last option ..using kernel32 right ? or can i call ping.exe seperately...
_________________________
"it is the question ...that drives the answer..."
Keep Clicking,
Bosky

Top
#7043 - 11/07/03 05:02 AM Re: saluting all those code gurus out there...
pergesu Offline
UGN Elite Poster

Registered: 03/14/02
Posts: 1136
Loc: Pimpin the Colorizzle
visage (shad0an) wrote a tool that constantly checks for ping responses from google. I'm not sure if the source is included in the jar file, it might be, or you could just get a decompiler to look at the source. I'm sure he'll give it away too, if you just ask him. So then you can modify it to do what you want. Right now it pings and if there's no response, it pops up a message. You'd want to change it so that it pings, and if there is a response, you do something. It's all written in Java.

http://www.javaspot.net/utils/keepalive.jar

Top
#7044 - 11/07/03 06:59 AM Re: saluting all those code gurus out there...
paradox Offline
Member

Registered: 08/28/03
Posts: 240
Loc: 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

Top
#7045 - 11/08/03 10:36 AM Re: saluting all those code gurus out there...
bosky101 Offline
Junior Member

Registered: 10/01/03
Posts: 59
Loc: 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

Top
#7046 - 11/08/03 12:25 PM Re: saluting all those code gurus out there...
paradox Offline
Member

Registered: 08/28/03
Posts: 240
Loc: 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
Code:
#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

Top
Page 1 of 3 1 2 3 >

Moderator:  Infinite 
Featured Member
Registered: 08/21/13
Posts: 1
Forum Stats
2146 Members
46 Forums
33853 Topics
69020 Posts

Max Online: 1567 @ 04/25/10 10:20 AM
Top Posters
UGN Security 27016
Gremelin 7192
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
Devo60, ali, lavos, Zanvin Green, Daktologist
2145 Registered Users
Who's Online
0 registered (), 307 Guests and 326 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!