1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

Tutorial Http injector glossary

Discussion in 'Smart, Talk 'N Text, & Sun' started by Hayizaku, Oct 11, 2016.

  1. Hello mga ka-PH.,

    Let's understand the meaning

    # Word Meaning

    Payload HTTP header data payload that will be injected
    Remote Proxy Remote HTTP proxy (ex: Squid proxy/APN proxy)
    Debug Mode Show your data that you send/received in app log (Please turn off during normal usage)
    Battery Saver Disable Wakelock that prevent your CPU from sleeping
    Google DNS Use Google DNS to bypass blocked websites and prevent your ISP from knowing what websites you're visiting.
    Start SSH Start SSH connection upon starting injection.

    [SSH/Setting] Connect Mode There's two modes, iptables (root) which will require root and it only tunnel port 80 and 443 traffic.
    VPN Service mode is for Android 4.0+ and will tunnel all traffic to your server. (Please use root mode, if you are having issue with VPN Service mode)
    SSH Secure Shell is a encrypted network protocol for initiating text-based shell sessions on remote machines in a secure way.
    SSH Host SSH IP/hostname
    SSH Port The port for your SSH server, normally will be port 22 (Normally public squid/http proxy will block port 22)
    Username SSH username
    Password SSH password
    Data Compression Compress data packet using zlib.
    Upstream Proxy HTTP Injector currently is using port 8989 (fixed), you have to enable and set for the SSH to connect to HTTP Injector local proxy server.

    Payload Keyword
    Using the below keyword, the app will automatically replace with relavent data upon injection, you don't need to replace the word inside the square bracket unless you know what you are doing.
    Supported keyword: [host] [port] [host_port] [protocol] [netData] [cr] [lf] [crlf] [lfcr]
    Assume that is your SSH Server IP and 22 is your SSH port
    Keyword Auto Replaced Meaning
    [host] Destination host
    [port] 22 Destination port
    [host_port] Destination host and port, seperated by colon :
    [ssh] SSH server ip and port that you set at settings
    [protocol] HTTP\1.0 or HTTP\1.1 HTTP protocol version
    [netData] CONNECT [host_port] [protocol] Short form of three keywords
    [cr] \r Carriage Return, U+000D
    [lf] \n Line Feed, U+000A
    [crlf] \r\n CR (U+000D) followed by LF (U+000A)
    [lfcr] \n\r LF (U+000A) followed by CR (U+000D)
    [crlf][crlf] \r\n\r\n To indicate the end of HTTP header

    Inject Method
    Notice: In this example we are using "CONNECT" & "HEAD" request method and domain.com as the host you want to spoof, you might need to use GET/POST/DELETE/CONNECT/HEAD...
    Make sure your remote HTTP proxy allow the request method else you will get 403 error.
    Tips: Use "Payload Generator" inside HTTP Injector app instead of writing manually. Normally we just need to use "CONNECT" request method

    Method Payload -
    Normal CONNECT [host_port] [protocol][crlf]Host: domain.com[crlf][crlf]
    Front Inject GET Please or Register to view links HTTP/1.1[crlf]Host: domain.com[crlf][crlf]CONNECT [host_port] [protocol][crlf][crlf]
    Back Inject CONNECT [host_port] HTTP/1.1[crlf][crlf]GET Please or Register to view links [protocol][crlf]Host: domain.com[crlf][crlf]
    Front Query CONNECT domain.com@[host_port][crlf]GET Please or Register to view links [protocol][crlf]Host: domain.com[crlf][crlf]
    Back Query CONNECT [host_port]@domain.com[crlf]GET Please or Register to view links [protocol][crlf]Host: domain.com[crlf][crlf]

    • 302 Error code - If you are getting 302 HTTP header code that means your ISP is redirecting your request to their captive portal page. Normally ISP blacklisted your remote proxy or the HTTP Payload
    • 400 Error code - This indicate that your payload is invalid and can't be understand by remote proxy
    • Connection timeout - It could be that your network connection is slow or the remote proxy is slow
    • Psiphon - To use with psiphon (uncheck Start SSH), you can't use [host_port] in your payload, you need to get the SSH IP of psipon and hardcode it (not tested)
    • OpenVPN - Disable "Start SSH" and use HTTP Injector with your OpenVPN if you don't have SSH server.
      You have to add http-proxy 8989 and bypass route route replace_to_your_remote_proxy_ip net_gateway (change "replace_to_your_remote_proxy_ip" to IP) to your VPN config.
    Credits to : Evozi
    Magie122600, Enzo26, Jerald19 and 8 others like this.
  2. Xifu

    Xifu Honorary Poster Established

  3. Chuilee04

    Chuilee04 Enthusiast Established

    Maraming thank you idol.
  4. xmgamer

    xmgamer Addict Established

    thanks for this sir..
  5. Informative thread.. thanks Ts.
  6. hpaosv00

    hpaosv00 Forum Guru Established

    Thanks for sharing.. Wonderful.
  7. roifz_09

    roifz_09 Enthusiast Established

  8. eto un hinahanap ko na thread.thanks a lot sir
  9. Jerald19

    Jerald19 Addict Established

  10. kailangan ko to boss.salamat sa pag share ng kaalaman na ito:D
  11. Enzo26

    Enzo26 Honorary Poster Established

    lamang ang may alam .. salamat..
  12. criscel

    criscel Eternal Poster Established

    Thanks sa info ts
  13. bajodom

    bajodom Addict Established

Tags / Keywords:

Share This Page