Skip to content

Instantly share code, notes, and snippets.

View betillogalvanfbc's full-sized avatar
:electron:
Don't give up!

Betillø Galvan betillogalvanfbc

:electron:
Don't give up!
View GitHub Profile
<!DOCTYPE html>
<html class="no-js">
<head>
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>ABC</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="" />
@betillogalvanfbc
betillogalvanfbc / Programs.cs
Created August 27, 2019 22:43
Get Only Email From Google Tabs
//MoreDetailshttps://stackoverflow.com/questions/40070703/how-to-get-a-list-of-open-tabs-from-chrome-c-sharp
//UIAutomationClient.dll
//UIAutomationTypes.dll
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
@betillogalvanfbc
betillogalvanfbc / Program.cs
Created July 30, 2019 19:52
Upload screenshot of desktop with FTP Server
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using System.Runtime.Remoting.Messaging;
using System.Runtime.InteropServices;
using static System.Net.Mime.MediaTypeNames;
using System.Drawing.Imaging;
using System.Net;
@betillogalvanfbc
betillogalvanfbc / host.ps1
Created July 9, 2019 16:21
Simple command to check host with powershell
1..2xx | % {"192.168.1.$($_):$(Test-Connection -count 1 -comp 192.168.1.$($_) -quiet)"} | Select-String -Pattern True
@echo off
rem Current Mac Address
getmac /v | findstr /b Ethernet
rem Search Ethernet of Brand Network
reg query HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318} /s /f DriverDesc
rem Verify class
rem Down Interface after to change
@betillogalvanfbc
betillogalvanfbc / ScreenShotDesktopPowershell.ps1
Created June 25, 2019 00:06
ScreenShotDesktopPowershell.ps1
[Reflection.Assembly]::LoadWithPartialName("System.Drawing")
function screenshot([Drawing.Rectangle]$bounds, $path) {
$bmp = New-Object Drawing.Bitmap $bounds.width, $bounds.height
$graphics = [Drawing.Graphics]::FromImage($bmp)
$graphics.CopyFromScreen($bounds.Location, [Drawing.Point]::Empty, $bounds.size)
$bmp.Save($path)
$graphics.Dispose()
$bmp.Dispose()
}
$bounds = [Drawing.Rectangle]::FromLTRB(0, 0, 1000, 900)
@betillogalvanfbc
betillogalvanfbc / SimpleScreenshotPowershell.ps1
Last active January 31, 2021 23:30
SimpleScreenshotPowershell.ps1
#More-Information With Powershell
#https://tech.mavericksevmont.com/blog/powershell-selenium-automate-web-browser-interactions-part-i/
foreach($hosti in Get-Content "hosts.txt"){
$YourURL = "https://www.$hosti"
$regxphoto = $hosti -replace "com$", "png"
$env:PATH += ";C:\path\chromedriver_win32\"
Add-Type -Path "C:\path\chromedriver_win32\WebDriver.dll"
$ChromeDriver = New-Object OpenQA.Selenium.Chrome.ChromeDriver
$ChromeDriver.Navigate().GoToURL($YourURL)
$ChromeDriver.GetScreenshot().SaveAsFile("$regxphoto")
#Text to HEX
echo "BetilloPOC" | xxd -ps -c 200 | tr -d '\n'
#Hex to Text
echo '426574696c6c6f504f43' | xxd -ps -r
@betillogalvanfbc
betillogalvanfbc / kernel.sh
Last active April 16, 2019 17:42
kernel.sh
#!/bin/bash
uname -a
echo $#
echo $1
echo "Welcome to my new script:"{$1}
echo "Welcome to my new script:"$1
echo "Welcome to my new script:$1"