Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
htdocs /
recibos res /
[ HOME SHELL ]
Name
Size
Permission
Action
css
[ DIR ]
drwxrwxr-x
ftp
[ DIR ]
drwxrwxr-x
img
[ DIR ]
drwxrwxr-x
js
[ DIR ]
drwxrwxr-x
leerpdf
[ DIR ]
drwxrwxr-x
pdf
[ DIR ]
drwxrwxr-x
recibos
[ DIR ]
drwxrwxr-x
subir
[ DIR ]
drwxrwxr-x
admin.php
38
B
-rwxrwxr-x
buscar.php
1.92
KB
-rwxrwxr-x
cabecera.php
973
B
-rwxrwxr-x
conexion.php
220
B
-rwxrwxr-x
funciones.php
1.79
KB
-rwxrwxr-x
index.php
378
B
-rwxrwxr-x
login.php
3
KB
-rwxrwxr-x
respaldofunciones.php
2.49
KB
-rwxrwxr-x
sample.html
604.89
KB
-rwxrwxr-x
sample.pdf
563.46
KB
-rwxrwxr-x
super.php
38
B
-rwxrwxr-x
usuario.php
1.79
KB
-rwxrwxr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : respaldofunciones.php
<?php function altas($rfc,$nombre){ include "conexion.php"; $sql="INSERT INTO usuarios VALUES('$rfc','utp2019',3,'$nombre')"; $query=mysqli_query($link,$sql); if ($query){ return true; }else{ return false; } } function altas_recibos($rfc,$a,$q){ include "conexion.php"; $sql="INSERT INTO recibos VALUES('$rfc','$a','$q')"; $query=mysqli_query($link,$sql); if ($query){ return true; }else{ return false; } } function existe($rfc){ include "conexion.php"; $sql="select * from usuarios where nombre='$rfc'"; $query=mysqli_query($link,$sql); if ($query){ return true; }else{ return false; } } function existe_recibo($rfc,$a,$q){ include "conexion.php"; $sql="SELECT * FROM recibos WHERE rfc='$rfc' and anio='$a' and quincena='$q'"; $query=mysqli_query($link,$sql); if ($query){ return true; }else{ return false; } } function nombre($a){ $a=str_replace('/',' ',$a); $c=explode(',',$a); $final=$c[1]." ".$c[0]; return $final; } function rfc($a){ $a=str_replace('-','',$a); return $a; } function crear($nomina,$q,$a){ $source_pdf="sample.pdf"; $output_folder="pdf"; if (!file_exists($output_folder)) { mkdir($output_folder, 0777, true);} exec("pdftohtml -c -noframes -zoom 2.0 -i -xml -nomerge 2>&1 $source_pdf $output_folder/horarios",$b); //var_dump($a); require "leerpdf/zdividir.php"; require "ftp/index.php"; set_time_limit(300); $xml = simplexml_load_file("pdf/horarios.xml"); $nombre=$xml->xpath("page/text[@left=149][@top=221]"); $rfc=$xml->xpath("page/text[@left=149][@top=269]"); $n=count($xml); for ($i=0;$i<=$n-1;$i++){ $nombre[$i]=nombre($nombre[$i]);//se enderezan los nombres $rfc[$i]=rfc($rfc[$i]);//se quitan los guiones al rfc split_pdf("sample.pdf",$rfc[$i].".$q".".".$a,$i+1);//se crean los archivos de cada empleado //crear usuarios si no existen if (existe($rfc[$i])){ altas($rfc[$i],$nombre[$i]); } //se llenan las tablas con los nombres de los recibos if (existe_recibo($rfc[$i],$a,$q)){ altas_recibos($rfc[$i],$a,$q); } } } crear(1,"3","2018"); ?>
Close