918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Rev | Line | |
---|
[b0dc2e4] | 1 | <? |
---|
| 2 | include_once("../clases/SockHidra.php"); |
---|
| 3 | |
---|
| 4 | $shidra=new SockHidra("192.168.0.100",2005); |
---|
| 5 | $parametros="1"; // Ejecutor |
---|
| 6 | $parametros.="nfn=inclusion_cliRMB".chr(13); |
---|
| 7 | |
---|
| 8 | $tiposo="tiposo=Windows"; |
---|
| 9 | $tipopart="tipopart=FAT32"; |
---|
| 10 | $tamapart="tamapart=5000000"; |
---|
| 11 | $numpart="numpart=1"; |
---|
| 12 | $nombreso="nombreso=Windos 98,SE,Millenium"; |
---|
| 13 | $parametroscfg="@cfg".chr(10).$tiposo.chr(10).$tipopart.chr(10).$tamapart.chr(10).$numpart.chr(10).$nombreso.chr(9); |
---|
| 14 | |
---|
| 15 | $parametros.="cfg=".$parametroscfg.chr(13); |
---|
| 16 | $parametros.="nau=".chr(13); |
---|
| 17 | $parametros.="nor=".chr(13); |
---|
| 18 | $parametros.="mac=000102B44EB2".chr(13); |
---|
| 19 | $parametros.="ipd=192.168.0.100".chr(13); |
---|
| 20 | $parametros.="ipr=192.168.0.100".chr(13); |
---|
| 21 | $parametros.="iph=10.1.15.11".chr(13); |
---|
| 22 | $parametros.="ido=23".chr(13); |
---|
| 23 | |
---|
| 24 | $resul=$shidra->conectar(); // Se ha establecido la conexión con el servidor hidra |
---|
| 25 | if($resul){ |
---|
| 26 | $resul=$shidra->envia_comando($parametros); |
---|
| 27 | echo $parametros; |
---|
| 28 | $shidra->desconectar(); |
---|
| 29 | } |
---|
| 30 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.