AutoHotkey Community

It is currently May 25th, 2012, 5:29 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 14 posts ] 
Author Message
PostPosted: October 8th, 2007, 9:03 pm 
How will I get my external IP via vidalia-tor (127.0.0.1:9051) with Ahk?
Does anyone can help me?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 8th, 2007, 9:11 pm 
ohh and i forgot to mention that i use FF with foxyproxy, so i dont mess with the internet explorer's proxy setting, so the manual
Quote:
UrlDownloadToFile will use a proxy server to access the Internet if such a proxy has been configured in Microsoft Internet Explorer's settings.
didnt help me


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 8th, 2007, 9:38 pm 
Help :(


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2007, 7:06 am 
Online
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8660
Location: Salem, MA
whatsmyip.net? (might be .com)

since it goes though IE, then you will get your real, local IP. There is no use getting your external IP through tor, since it always changes.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2007, 12:39 pm 
That is the point! I need to display in my program the country's name of my exit node. Its very important to me
p.s. why do you think I ask for help? dont you think I look and test every script in every topic related? :roll:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2007, 12:57 pm 
Offline

Joined: October 6th, 2007, 2:08 pm
Posts: 6
Location: Adelaide, Australia
Code:
:SI*:]ip::   ; Replaces "]ip" with user's current external ip address
FileDelete, ipaddress
UrlDownloadToFile, http://cdxliv.net/ipaddress.php, ipaddress
FileRead, ipaddress, ipaddress
SendInput %ipaddress% `
FileDelete, ipaddress
return


I use that to get my IP address, you mentioned something about IE, but I'm not clear about what you meant. If you cannot use IE, then you can use cURL+AHK and set up the connection however you need to.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2007, 1:00 pm 
sup wrote:
dont you think I look and test every script in every topic related? :roll:


You sound offended! How does engunneer know who you are unless you use your registered nick?. Checking the IP of each and every post isnt practical.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2007, 1:07 pm 
Quote:
dont you think I look and test every script in every topic related?
If you would, I'd call you unefficient. If you test those which are related, I'd call you selfmotivated. As we can't see any code you've scrpited on your own but you're complaining, I'd call you smugly. :?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2007, 1:12 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
Download and parse http://checkip.dyndns.org/ with cURL using the proxy Privoxy creates for tor connections (127.0.0.1:8118 for me).

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2007, 1:29 pm 
:lol: engunneer you have many friends here


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2007, 2:01 pm 
Offline

Joined: October 6th, 2007, 2:08 pm
Posts: 6
Location: Adelaide, Australia
Sup, I noticed you said you needed the country name as well. So I threw together this page really quick:
http://ip.cdxliv.net/
it returns a plain text page formatted as
Code:
<external ip>,<2 letter country code>,<printable country name>


Report this post
Top
 Profile  
Reply with quote  
 Post subject: SOLVED
PostPosted: October 9th, 2007, 3:09 pm 
I reinstaled Vidalia so now it is with Proxy included.
My working demo script :D :
Code:
;THIS SCRIPT WORKS ONLY WITH VIDALIA+PROXY INSTALLED !!!
;+++++++++++++++++++++++++++++++++++++++++++++++++++++++
CurlPath=c:\Program Files\curl.exe
RunWait, %CurlPath% -o %A_Temp%\MyExternalIP.txt --proxy 127.0.0.1:8118 http://ip.cdxliv.net/,,Min
FileRead, MyExternalIp, %A_Temp%\MyExternalIP.txt
StringSplit,IPInfo,MyExternalIp,`,
IP:=IPInfo1
CountryCode:=IPInfo2
CountryName:=IPInfo3

MsgBox Country is: %CountryName%
MsgBox IP is %IP%

I could not have done this without your help 8). Cheers!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 10th, 2007, 3:10 am 
Online
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8660
Location: Salem, MA
sup wrote:
:lol: engunneer you have many friends here


and not because I am a moderator with edit privileges, I promise! (I would be banned for it)

some 90% of my posts are trying to help people, I try to answer anything i have info about as quickly as I can. I often wish there was a reputation meter on the forum, though I will admit it is just vanity. (also vain: checking the top ten poster list to see where I stand, but that is inaccurate, since a few people never log in, like Bobo, so he may be highly ranked.)

My point was that even if you check your IP and get the country, how do you know your next request will come out the same place? I thought tor changed nearly constantly.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject: A good ideea
PostPosted: October 10th, 2007, 11:04 am 
Offline

Joined: January 7th, 2007, 6:40 pm
Posts: 109
Location: In fund pe scaun, la o bere prin Romania :D
Quote:
My point was that even if you check your IP and get the country, how do you know your next request will come out the same place? I thought tor changed nearly constantly.

don;t know exactly, but i think i found in tor's manual that u can specify how often tor changes ip, 10 mins is default i think

Quote:
I often wish there was a reputation meter on the forum,
I wsh also in this forum a scale from 1 to 5 available to a user that starts a topic, so he can rate an answer, so, from here u can build a really wonderful vanity meter :lol:

Chris what do u think? :wink:

_________________
ImageBackgammon addicted!
GamesGrid was one of the first online web sites to bring Backgammon to the Internet


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, engunneer, Google Feedfetcher, rbrtryn, tank, toddintr, tomL, Yahoo [Bot] and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group