Add initial project structure and configurations

- Set up project directories including app structure.
- Add IntelliJ IDEA project files and configurations.
- Implement basic PHP router for request handling.
- Provide reference files for features, IPs, and documentation.
- Include license and copyright files.
This commit is contained in:
Sapoleone
2025-09-23 23:56:22 +02:00
parent 03cb1c5e13
commit cfaafcffa6
39 changed files with 2950 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
+-----------------------------------------------------------+
| |
| Available Features |
| |
+----+--------------------------+---------------------------+
| No | Name | Args |
+----+--------------------------+---------------------------+
| 1 | Start App | Num of apps, App names |
| 2 | Screen Lock | |
| 3 | User Login | Username, Password |
| 4 | User Logoff | |
| 5 | Reboot | |
| 6 | Power Down | |
| 7 | Text Message | Message |
+----+--------------------------+---------------------------+
| 8 | Demo Server | DemoToken |
| 9 | Demo Client (Fullscreen) | DemoToken, DemoServer |
| 10 | Demo Client (Window) | DemoToken, DemoServer |
+----+--------------------------+---------------------------+

58
refs/batch/features.cpp Normal file
View File

@@ -0,0 +1,58 @@
//Features.cpp
#import <iostream>
#import <cstdlib>
#include <string>
#import <ctime>
using namespace std;
string folderName = "";
string execName = "EXEC";
string path = "C:/Program Files/";
int attrList() {
int usr;
cout << "+------- MENU' -------+" << endl;
cout << "| 1. Remote Access |" << endl;
cout << "| 2. Features (list) |" << endl;
cout << "| 3. Get Token |" << endl;
cout << "+---------------------+" << endl;
cout << "Scegli un opzione: ";
cin >> usr;
return usr;
}
int main(){
int usr;
string tmp = "cd /D " + '"' + path + '"'+"";
system(tmp.c_str());
system( "echo %cd%" );
usr = attrList();
switch (usr) {
case 1:
int sel;
string ip;
cout << "Control (0) or View(1)? ";
cin >> sel;
cout << "Select host(IP): ";
cin >> ip;
system( (" echo %cd% && "+execName+" remoteaccess "+((!sel)?"control":"view")+" "+ip).c_str() );
break;
/* case 2:
cout << "2.";
break;
case 3:
cout << "3.";
break;*/
}
//rem acc <Ctrl/Vw> <IP>
//system(execName+
//feature <sr/st> <IP> <FeatureName> <JSON-ARGS>
//get TokenFromWebUI <IP>
}

145
refs/batch/index.bat Normal file
View File

@@ -0,0 +1,145 @@
@echo off
set folder=Veyon
set exec=veyon-cli.exe
set bd=%cd%
echo %bd%
cd /D "C:/Program Files/%folder%"
:cycle
cls
echo.
echo +------ Menu ------+
echo [ 1. Remote Access ]
echo [ 2. Features ]
echo [ 3. Get Token ]
echo +------------------+
set /p "opt=Please select an option: "
if %opt%==1 goto :remAccess
if %opt%==2 goto :featuresList
if %opt%==3 goto :getToken
echo L'opzione inserita non esiste
pause
exit ::Dovrebbe terminare il programma
:remAccess
set /p "opt=Control(0) or View(1): "
if %opt%==0 set vwOrCt=control
if %opt%==1 set vwOrCt=view
type %bd%\ips.txt ::Print the 3rd ottect by laboratory
set /p "mask=Select 3rd oct: "
if %mask%==4 echo Nel LAP2 gli ip sono scalati di 30 in avanti
set /p "addr=Select host addr:"
%exec% remoteaccess %vwOrCt% 192.168.%mask%.%addr%
pause
goto :cycle
:featuresList
type %bd%\featureList.txt
set /p "featureSelected=Select a feature: "
if %featureSelected%==1 goto :startApp
if %featureSelected%==2 goto :screenLock
if %featureSelected%==3 goto :userLogin
if %featureSelected%==4 goto :userLogoff
if %featureSelected%==5 goto :reboot
if %featureSelected%==6 goto :powerDown
if %featureSelected%==7 goto :textMessage
if %featureSelected%==8 goto :demoServer
if %featureSelected%==9 goto :demoFull
if %featureSelected%==10 goto :demoWin
echo. && echo WARN: Hai selezionato un opzione che non esiste! && echo.
pause
goto :cycle
:getToken
start cmd /k %exec% webapi runserver
set /p "mask=Select 3rd oct: "
set /p "addr=Select host addr:"
curl localhost:11080/api/v1/authentication/192.168.%mask%.%addr%
pause
goto :cycle
::Feature Management
:startApp
set /p "noApp=Insert the number of apps: "
set json="{ "applications": ["
set i=0
:loop_for
if i GEQ %noApp% goto :exitLoop_for
set /p "appName=\tInsert app path: "
set json=%json%"%appName%",
goto :loop_for
:exitLoop_for
set json=%json%]}
echo %json%
pause
goto :cycle
:screenLock
set /p "mask=Select 3rd oct: "
set /p "addr=Select host addr:"
%exec% feature start screenLock 192.168.%mask%.%addr%
pause
%exec% feature stop screenLock 192.168.%mask%.%addr%
goto :cycle
:userLogin
echo Non ancora implementato
goto :cycle
:userLogoff
set /p "mask=Select 3rd oct: "
set /p "addr=Select host addr:"
%exec% feature start 192.168.%mask%.%addr% UserLogoff
pause
goto :cycle
:reboot
echo Non ancora implementato
goto :cycle
:powerDown
echo Non ancora implementato
goto :cycle
:textMessage
set /p "mask=Select 3rd oct: "
set /p "addr=Select host addr:"
set /p "msg=Insert msg:"
%exec% feature start 192.168.%mask%.%addr% TextMessage '{\"text\":\"%msg%\"}'
pause
goto :cycle
:demoServer
echo Non ancora implementato
goto :cycle
:demoFull
echo Non ancora implementato
goto :cycle
:demoWin
echo Non ancora implementato
goto :cycle

14
refs/batch/ips.txt Normal file
View File

@@ -0,0 +1,14 @@
+----- IP MASKS -----+
| 1 - [...] |
| 2 - LASA |
| 3 - [...] |
| 4 - LAP1 / LAP2 | #LAP2 +30
| 5 - [...] |
| 6 - [...] |
| 7 - [...] |
| 8 - LAS |
| 9 - LMM |
| 10 - LAM |
| 11 - [...] |
| 12 - Classi |
+--------------------+