Opt-In Software Blog

TCP Port Mapper in Proxy mode: how redirect all traffic to the specified host:port.

by Vitaly, Friday, July 31st, 2015

When TCP Port Mapper (tcpportmap) acts as a proxy (ProxyMode has one of the values: HTTP, CONNECT, SOCKS4 or SOCKS5), then MapToHost and MapToPort can be used to forward all traffic to the specifed host:port.

For example, let ProxyMode=CONNECT and TCP Port Mapper has received this command from the client:

CONNECT www.google.com:80 HTTP/1.1
  1. If MapToHost=127.0.0.1, MapToPort=8080 then TCP Port Mapper will establish connection to 127.0.0.1:8080.
  2. If MapToHost=127.0.0.1, MapToPort is not specified (or zero) then TCP Port Mapper will establish connection to 127.0.0.1:80.
  3. If MapToHost is not specified (or empty), MapToPort=8080 then TCP Port Mapper will establish connection to www.google.com:8080.
  4. If the both MapToHost and MapToPort are not specified then TCP Port Mapper will establish connection to www.google.com:80.

Tags: Proxy, TCP

IMAP Checker

by Vitaly, Thursday, July 30th, 2015

IMAP Checker 1.1 has been released.

This tool allows to count e-mails in the Inbox and Spam folders.
It uses IMAP protocol to access mailboxes and it has multi-threaded architecture.

On the IMAP Servers tab you need to fill in the IMAP settings for different e-mail domains.

Aol IMAP Settings

Domain(s): aol.com, aol.co.uk
Host: imap.aol.com
Port: 143
SSL/TLS: No SSL Support
Authentication Type: User/Password
Inbox Folder: INBOX
Spam Folder: SPAM

Gmail IMAP Settings

Domain(s): gmail.com, googlemail.com
Host: imap.gmail.com
Port: 993
SSL/TLS: Implicit SSL
Authentication Type: User/Password
Inbox Folder: Inbox
Spam Folder: [Gmail]/Spam

Hotmail/Outlook IMAP Settings

Domain(s): hotmail.com, outlook.com
Host: imap-mail.outlook.com
Port: 993
SSL/TLS: Implicit SSL
Authentication Type: User/Password
Inbox Folder: Inbox
Spam Folder: Junk

Yahoo IMAP Settings

Domain(s): yahoo.com, yahoo.co.uk
Host: imap.mail.yahoo.com
Port: 993
SSL/TLS: Implicit SSL
Authentication Type: User/Password
Inbox Folder: Inbox
Spam Folder: Bulk Mail

Tags: IMAP

IPv6 support for TCP Port Mapper

by Vitaly, Friday, June 26th, 2015

TCP Port Mapper 1.70 released.

Now IPv6 addresses can be used in all settings: ListenIP, MapToHost, MapArray, MapFromFile, MapFromUrl etc.

It is preferred to enter IPv6 addresses, enclosed in square brackets. That allows to extract the Port from the IPv6:Port.
Example of the IPv6 address: [2001:4860:4860::8888].

If the ListenIP setting is not specified (or ListenIP=ANY) you can set SrvIPv6=Yes.
That allows to force listening incoming IPv6 connections.

If the both IPv4 and IPv6 addresses are exist for the destination host, TCP Port Mapper will use IPv4 address. To force using IPv6 address you can set: CntIPv6=Yes.

Tags: IPv6, TCP

Resolve External IP

by Vitaly, Wednesday, July 1st, 2015

URL to resolve IPv4 address:

http://ipv4.test-ipv6.com/ip/?callback=_jqjsp&asn=1&testdomain=test-ipv6.com&testname=test_asn4

Response (IPv4):

_jqjsp({"ip":"xxx.xxx.xxx.xxx","type":"ipv4","subtype":"","via":"","asn":"yyyyy","asn_name":"Provider Name,US","asnlist":"yyyyy","padding":""})

Extract IPv4 regular expression:

\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}

URL to resolve IPv6 address:

http://ipv6.test-ipv6.com/ip/?callback=_jqjsp&asn=1&testdomain=test-ipv6.com&testname=test_asn6

Response (IPv6):

_jqjsp({"ip":"xxxx:x:xxxx:xxx:xxxx:xxxx:xxxx:xxxx","type":"ipv6","subtype":"Teredo","via":"","padding":""})

Extract IPv6 regular expression:

([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)

Tags: External IP, IPv4, IPv6, Proxy

IPv6 support for DNS Server

by Vitaly, Friday, June 12th, 2015

DNS Server 1.49 has been released.

  1. Added the ability to send requests to the IPv6 DNS servers. Now DNSHost, DNSHost2 and FromIP settings can contain IPv6 addresses (read Help for more info).
    Example (using Google IPv6 DNS):

    DNSHost=2001:4860:4860::8888
    DNSHost2=2001:4860:4860::8844
  2. Added the ability to listen incoming DNS requests on IPv6. SrvIP and SrvIP2 settings can contain IPv6 addresses.
    If SrvIP is not specified or it contains Any value then you can force using IPv6 by specifying:

    
    SrvIPv6=Yes

Tags: DNS, IPv6

Account Verifier 1.31

by Vitaly, Tuesday, May 19th, 2015

Account Verifier 1.31 has been released.

In new version:

  1.  “Dictionary Mode” works together with “Extract Servers from accounts” and “Get Server Settings from source list” options.
    That allows to combine email from the source mailing list with static password and check if email:password is valid.
  2. Save accounts with incorrect logins and incorrect passwords to the “Bad Users” and the “Bad Passwords” files accordingly.

av.1.31.out-tn

User Agents

by Vitaly, Monday, April 27th, 2015

“User-Agent” HTTP header allows to identify Internet Explorer version.

Look the following article to learn more about Internet Explorer user-agent strings: Understanding user-agent strings.

Pay attention to the compatibility changes in IE 11:

  • The compatible (“compatible”) and browser (“MSIE”) tokens have been removed.
  • The “like Gecko” token has been added (for consistency with other browsers).
  • The version of the browser is now reported by a new revision (“rv”) token.

Below is the list of some user-agent strings used by Internet Explorer 8-11:

IE 8:

  • Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0)
  • Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; msn OptimizedIE8;NLNL)
  • Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; BTRS101581; .NET CLR 1.1.4322; .NET CLR 2.0.50727; msn OptimizedIE8;NLNL)
  • Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.5; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8; .NET4.0C; .NET4.0E; msn OptimizedIE8;ENCA)
  • Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB7.5; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 3.5.21022; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; msn OptimizedIE8;ENGB)
  • Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.5; .NET CLR 2.0.50727; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; msn OptimizedIE8;ENZA)
  • Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0E; .NET4.0C; msn OptimizedIE8;ZHTW)
  • Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.5; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; BRI/2; .NET CLR 2.0.50727; AskTbORJ/5.15.25.36191; msn OptimizedIE8;ENGB)
  • Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTbX-SD/5.14.1.20007; msn OptimizedIE8;ENUS)

IE 9:

  • Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
  • Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; Tablet PC 2.0; MS-RTC LM 8; InfoPath.3; msn OptimizedIE8;ENGB)
  • Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; .NET4.0E; msn OptimizedIE8;NLNL)
  • Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; .NET CLR 3.0.30729; .NET4.0E; msn OptimizedIE8;NLNL)

IE 10:

  • Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)
  • Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; BRI/2; MAPB; EIE10;NLNLMSN)
  • Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; EIE10;NLNLMSN)

IE 11:

  • Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko
  • Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
  • Mozilla/5.0 (Windows NT 6.3; Win64, x64; Trident/7.0; Touch; rv:11.0) like Gecko
  • Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko
  • Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; Media Center PC 6.0; NP08; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729; EIE10;NLNLMSN; rv:11.0) like Gecko

Tags: HTTP, IE, User Agent