Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » Executing a (DOS) command from webpage.
Search Topic:
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
Do you think .me domain will get big like .com / .net ? »
« [EMAIL] Securing EXIM and Spam Issue  
AuthorAll Replies
-


Press2Esc

join:2005-07-03
SC
·AT&T Southeast

reply to Gwellin
Re: Executing a (DOS) command from webpage.

said by Gwellin See Profile :

In a PHP file (on the server) you would use the following line of code:

thanks GWellin, this is helpful.


Gwellin
Premium
join:2004-05-31
Regina, SK
·Access Communicati..

reply to Press2Esc
There is nothing the system has to do beyond what it normally does to request the webpage. In other words, by contacting the server it learns the requesting computers public IP address, you simply need to output it. In a PHP file (on the server) you would use the following line of code:

--
Here to help all those in need, whenever I can.


Press2Esc

join:2005-07-03
SC
·AT&T Southeast

reply to Gwellin
said by Gwellin See Profile :

Ya, running a local script from a browser is not going to happen, but sending them to a simple webpage can just as easily give them their IP address to copy and paste. Just look here: »/whois
This is a reasonable example of what I was originally asking about... In this case, a person would simply click on a link and, after they are redirected to a different url, the results of a system inquiry is displayed showing the PCs public IP addr.


Gwellin
Premium
join:2004-05-31
Regina, SK
·Access Communicati..

reply to JAAulde
said by JAAulde See Profile :

said by Gwellin See Profile :

...but sending them to a simple webpage can just as easily give them their IP address to copy and paste. Just look here: »/whois
Remembering that this gives the publicly addressable IP of the device which requested the page and that it may not be the same as the actual IP address of the computer the user is using. (NAT/NAPT/etc setups, some proxies, etc will cause this to vary)
True, I was wondering if that's what he might actually want. If that's the case then that would not work.

However, if the web page is being hosted on the same network he might get a better result, assuming the network isn't too complicated.
--
Here to help all those in need, whenever I can.


JAAulde
yum yum yum yum yum
Premium,MVM
join:2001-05-09
Hagerstown, MD


2 edits
reply to Gwellin
said by Gwellin See Profile :

...but sending them to a simple webpage can just as easily give them their IP address to copy and paste. Just look here: »/whois
Remembering that this gives the publicly addressable IP of the device which requested the page and that it may not be the same as the actual IP address of the computer the user is using. (NAT/NAPT/etc setups, some proxies, etc will cause this to vary)


Gwellin
Premium
join:2004-05-31
Regina, SK
·Access Communicati..

reply to Press2Esc
Ya, running a local script from a browser is not going to happen, but sending them to a simple webpage can just as easily give them their IP address to copy and paste. Just look here: »/whois
--
Here to help all those in need, whenever I can.


JAAulde
yum yum yum yum yum
Premium,MVM
join:2001-05-09
Hagerstown, MD

reply to Press2Esc
Yeah, executing local scripts just isn't going to happen. I suppose it is possible to write a small app that you could convince the individual to download and run which would produce output that they could supply back to you. But that isn't much better than your current situation.


Press2Esc

join:2005-07-03
SC
·AT&T Southeast

reply to Press2Esc
WOW, what a quick response from the group - thx.

Basically, as you guys per empathize, I also provide tech support at BBR and various online forums for people struggling with broadband and SMB networks. Soooo, per my example, if I was able to reference an online html "webpage" or send someone an html-based email asking the recipient for their ip address, I would not need to (1) understand the person level of comprehension and (2) provide them with wordy "do-this, then do-this and if this, do-this" instructions..

If the person needing assistance were able to click on an email or webpage link that LOCALLY executes the ipconfig command, it would sure make life ez. This is especially true for the end-users who have a lifetime subscription to the "... for dummies" books..

In a past life, as a former programmer, allows me to understand coding, but certainly less is best.

Thanks again, for your great and timely responses!!

P2E
Forums » Tech and Talk » OS and Software » Webmasters and DevelopersDo you think .me domain will get big like .com / .net ? »
« [EMAIL] Securing EXIM and Spam Issue  


Wednesday, 02-Dec 20:13:41 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [161] Comcast Releasing Promised Usage Meter
· [93] Graduate Student Unveils Sprint's GPS Sharing With Feds
· [79] Latest Consumer Reports Survey Not Kind To AT&T
· [70] Baltimore To Ban Lazy Cable Installs
· [62] Broadband Killed The Game Console
· [54] Rogers Unveils The ISP Dream Model
· [46] ACTA: Global Three Strikes
· [41] Rural Carriers Quickly Embracing Fiber
· [38] Charter Exits Chapter 11
· [38] AT&T, Verizon Drop 3G Ad Dispute
Most people now reading
· MS admits Windows Updates principally created to annoy [Security]
· IMG 1.7 (IMG Updates and Discussion) [Verizon FIOS TV]
· Captchas get smarter [Security]
· [WIN7] When exactly should you flash bios when installing new OS [Microsoft Help]
· Quality/longevity of 15A 120V receptacles [Home Repair & Improvement]
· [Scam] Cruise line mail? [Spam, Scam and Phishbusters]
· 16% packet loss. damn dsl. los angeles [AT&T West]
· Using AirMax to provide triple play services? [Wireless Service Providers]
· [Newsgroups] Newzleech down? [Filesharing Software]
· A little freaky, not sure if its legit. [Spam, Scam and Phishbusters]