Skip to content

Instantly share code, notes, and snippets.

View Deca's full-sized avatar
🙈
Distraction level 94%

Deca

🙈
Distraction level 94%
  • Freelance
  • Italy
View GitHub Profile
cd hacked_website/public_html/
# scan with clamAV
clamscan -ir .
# find all files that use evil functions!
find . -type f -name '*.php' | xargs grep -l "eval *(" --color
find . -type f -name '*.php' | xargs grep -l "gzinflate *(" --color
# find all files with hex-crypted content (x29 = ")", x3B = ";") » this should be in any php code...
@Deca
Deca / Laravel on VestaCP.md
Created June 16, 2019 08:39 — forked from peterbrinck/Laravel on VestaCP.md
Laravel web templates for VestaCP

I've made a new web template to make Laravel work easily on VestaCP, and so I wouldn't have to change my Laravel installation, if I ever wanted to deploy it elsewhere.

Each file should be put in /usr/local/vesta/data/templates/web/apache2

Then, when you edit your domain/site, you can change the web template to Laravel and just upload your whole project into public_html

@Deca
Deca / install-choco-script.bat
Last active June 18, 2019 04:02 — forked from zaccb/install-choco-script.bat
Chocolatey install script
:: Install choco .exe and add choco to PATH
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
:: Install all the packages
:::: Browsers
choco install googlechrome -fy
choco install brave -fy
:::: Text editors / IDEs
choco install sublimetext3 -fy