UA- Tester

Description

UA- Tester is designed to automatically check a given URL using a list of standard and non- standard User Agent strings provided by the user (1 per line). The results of these checks are then reported to the user for further manual analysis where required. Gathered data includes Response Codes, resulting URL in the case of a 30x response, MD5 and length of response body, and select Server headers. Results: When in non-verbose mode, only values that do not match the initial reference connection are reported to the user. If no results are shown for a specific useragent then all results match the initial reference connection. If you require a full output of all checks regardless of matches to the reference, please use the verbose setting.

Usage

UA- Tester

            -u / --url Complete URL
            -f / --file <Path to User Agent file> / If no file is provided, -d options must be present
            -s / --single provide single user-agent string (may need to be contained within quotes)
            -d / --default Select the UA String type(s) to check. Select 1 or more of the following ↵
            	           catagories. (M)obile, (D)esktop, mis(C), (T)ools, (B)ots, e(X)treme [!])
			
	    -o / --output <Path to output file> CSV formated output (FILE WILL BE OVERWRITTEN[!])
	    -v / --verbose results (Displays full headers for each check) >> Recommended
            --debug See debug messages (This isn't the switch you're looking for)

Example

            ./UATester.py -u www.example.com -f ./useragentlist.txt -v
	    ./UATester.py -u https://www.wordpress.com
	    ./UATester.py -u http://www.defaultserver.com -v --debug
	    ./UATester.py -u facebook.com -v -d MDBX
	    ./UATester.py -u https://www.google.com -s "MySpecialUserAgent"
	    ./UATester.py -u blog.c22.cc -d MC -o ./output.csv

Example 1 :

cyborg@cyborg:~$ sudo ua-tester -u www.youtube.com


         _/    _/  _/_/_/_/       _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/
        _/    _/  _/    _/          _/    _/       _/          _/    _/       _/    _/
       _/    _/  _/_/_/_/  _/_/_/  _/    _/_/_/   _/_/_/_/    _/    _/_/_/   _/_/_/_
      _/    _/  _/    _/          _/    _/             _/    _/    _/       _/    _/
     _/_/_/_/  _/    _/          _/    _/_/_/_/ _/_/_/_/    _/    _/_/_/_/ _/      _/ [v1.06]

                                                                 _/ User-Agent Tester ↵
                                                                  _/ AKA: Purple Pimp ↵
                                                                    _/ ChrisJohnRiley ↵
                                                                       _/ blog.c22.cc ↵

 [>] Performing initial request and confirming stability
 [>] Using User-Agent string Mozilla/5.0 

    [ ] URL (ENTERED): http://www.youtube.com
    [!] URL (FINAL): https://www.youtube.com/
    [!] Response Code: 301 Moved Permanently
    [ ] Date: Wed, 02 Sep 2015 08:21:05 GMT
    [ ] Server: gwiseguy/2.0
    [ ] Expires: Tue, 27 Apr 1971 19:44:06 EST
    [ ] X-Content-Type-Options: nosniff
    [ ] X-Frame-Options: SAMEORIGIN
    [ ] Cache-Control: no-cache
    [ ] Content-Type: text/html; charset=utf-8
    [ ] X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
    [ ] P3P: CP="This is not a P3P policy! See http://support.google.com/accounts/answer/151657?hl=en for more
	            info."
    [ ] Set-Cookie: VISITOR_INFO1_LIVE=cunc-fQ3Tr0; path=/; domain=.youtube.com; expires=Mon, 02-May-2016
	            20:14:05 GMT; httponly
    [ ] Set-Cookie: YSC=kGX86HpQlr0; path=/; domain=.youtube.com; httponly
    [ ] Set-Cookie: PREF=f1=40000000; path=/; domain=.youtube.com; expires=Mon, 02-May-2016 20:14:05 GMT
    [ ] Alternate-Protocol: 443:quic,p=1
    [ ] Alt-Svc: quic=":443"; p="1"; ma=604800
    [ ] Accept-Ranges: none
    [ ] Vary: Accept-Encoding
    [ ] Connection: close
    [ ] Data (MD5): cc79493c8c97f7347fd5c14cab4da96c 

 [1] Pass
 [2] Pass

Example 2 : 

  • Scanning a website, using particular user agent.
Note:- In this tool, there is only 6 user agents are available, these are listed below:-
  1. (M)obile
  2. (D)esktop
  3. mis(C)
  4. (T)ools
  5. (B)ots
  6. e(X)treme
cyborg@cyborg:~$ sudo ua-tester -u www.youtube.com -d MD


         _/    _/  _/_/_/_/       _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/
        _/    _/  _/    _/          _/    _/       _/          _/    _/       _/    _/
       _/    _/  _/_/_/_/  _/_/_/  _/    _/_/_/   _/_/_/_/    _/    _/_/_/   _/_/_/_
      _/    _/  _/    _/          _/    _/             _/    _/    _/       _/    _/
     _/_/_/_/  _/    _/          _/    _/_/_/_/ _/_/_/_/    _/    _/_/_/_/ _/      _/ [v1.06]

                                                                 _/ User-Agent Tester ↵
                                                                  _/ AKA: Purple Pimp ↵
                                                                    _/ ChrisJohnRiley ↵
                                                                       _/ blog.c22.cc ↵

 [>] Performing initial request and confirming stability
 [>] Using User-Agent string Mozilla/5.0 

    [ ] URL (ENTERED): http://www.youtube.com
    [!] URL (FINAL): https://www.youtube.com/
    [!] Response Code: 301 Moved Permanently
    [ ] Date: Wed, 02 Sep 2015 08:21:24 GMT
    [ ] Server: gwiseguy/2.0
    [ ] X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
    [ ] Cache-Control: no-cache
    [ ] Content-Type: text/html; charset=utf-8
    [ ] Expires: Tue, 27 Apr 1971 19:44:06 EST
    [ ] X-Frame-Options: SAMEORIGIN
    [ ] P3P: CP="This is not a P3P policy! See http://support.google.com/accounts/answer/151657?hl=en for more
	            info."
    [ ] X-Content-Type-Options: nosniff
    [ ] Set-Cookie: PREF=f1=40000000; path=/; domain=.youtube.com; expires=Mon, 02-May-2016 20:14:24 GMT
    [ ] Set-Cookie: YSC=cPZoKDJvCaI; path=/; domain=.youtube.com; httponly
    [ ] Set-Cookie: VISITOR_INFO1_LIVE=Rt_Pv9tbyxs; path=/; domain=.youtube.com; expires=Mon, 02-May-2016
	            20:14:24 GMT; httponly
    [ ] Alternate-Protocol: 443:quic,p=1
    [ ] Alt-Svc: quic=":443"; p="1"; ma=604800
    [ ] Accept-Ranges: none
    [ ] Vary: Accept-Encoding
    [ ] Connection: close
    [ ] Data (MD5): 486e177fcb5edef70cdda30fffb02dbd 

 [1] Pass
 [2] Pass
 [3] Pass

 [>] URL appears stable. Beginning test

 [>] Using DEFAULT User-Agent Strings

 [>] Using Mobile User-Agent Strings 
 [>] Using Desktop User-Agent Strings 

 [>] Output: [+] Added Headers, [-] Removed Headers, [!] Altered Headers, [ ] No Change

 

Example 3: Usage with verbose mode

cyborg@cyborg:~$ sudo ua-tester -u www.youtube.com -v


         _/    _/  _/_/_/_/       _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/
        _/    _/  _/    _/          _/    _/       _/          _/    _/       _/    _/
       _/    _/  _/_/_/_/  _/_/_/  _/    _/_/_/   _/_/_/_/    _/    _/_/_/   _/_/_/_
      _/    _/  _/    _/          _/    _/             _/    _/    _/       _/    _/
     _/_/_/_/  _/    _/          _/    _/_/_/_/ _/_/_/_/    _/    _/_/_/_/ _/      _/ [v1.06]

                                                                 _/ User-Agent Tester ↵
                                                                  _/ AKA: Purple Pimp ↵
                                                                    _/ ChrisJohnRiley ↵
                                                                       _/ blog.c22.cc ↵

 [*] Running in Verbose mode

 [>] Performing initial request and confirming stability
 [>] Using User-Agent string Mozilla/5.0 

    [ ] URL (ENTERED): http://www.youtube.com
    [!] URL (FINAL): https://www.youtube.com/
    [!] Response Code: 301 Moved Permanently
    [ ] Date: Wed, 02 Sep 2015 08:21:57 GMT
    [ ] Server: gwiseguy/2.0
    [ ] X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
    [ ] Cache-Control: no-cache
    [ ] P3P: CP="This is not a P3P policy! See http://support.google.com/accounts/answer/151657?hl=en for more
	            info."
    [ ] X-Content-Type-Options: nosniff
    [ ] Content-Type: text/html; charset=utf-8
    [ ] X-Frame-Options: SAMEORIGIN
    [ ] Expires: Tue, 27 Apr 1971 19:44:06 EST
    [ ] Set-Cookie: YSC=E4GvbUqqWEI; path=/; domain=.youtube.com; httponly
    [ ] Set-Cookie: PREF=f1=40000000; path=/; domain=.youtube.com; expires=Mon, 02-May-2016 20:14:57 GMT
    [ ] Set-Cookie: VISITOR_INFO1_LIVE=LIGevXu61CM; path=/; domain=.youtube.com; expires=Mon, 02-May-2016
	            20:14:57 GMT; httponly
    [ ] Alternate-Protocol: 443:quic,p=1
    [ ] Alt-Svc: quic=":443"; p="1"; ma=604800
    [ ] Accept-Ranges: none
    [ ] Vary: Accept-Encoding
    [ ] Connection: close
    [ ] Data (MD5): 127ff95b40202cf6c0a1cc74f25c3f6e
0 Comments

Leave a reply

CONTACT US

We're are building as a community and a team. Be a part of it.

Sending

©2017 Ztrela Knowledge Solutions Pvt. Ltd

Log in with your credentials

Forgot your details?