This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
Chat++ The best UNIX chat program at BGSU probbably. | |
Author: Dylan Bickerstaff | |
Date: 4/30/2018 | |
Description: This chat program allows multiple users to chat over a UNIX terminal. | |
*/ | |
#include <iostream> | |
#include <fstream> //Library used for file access. | |
#include <unistd.h> //Library used for sleep function. | |
#include <cctype> //Library used for input validation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
using System.Diagnostics; | |
namespace BelowAverage | |
{ | |
class SecureDesktop | |
{ | |
public const int TOKEN_DUPLICATE = 0x0002; | |
public const int TOKEN_IMPERSONATE = 0x0004; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$computer = Read-Host -Prompt "Enter PC Name" | |
Write-Host "Pinging $computer..." | |
if (Test-Connection -Computername $computer -BufferSize 16 -Count 1 -Quiet) { | |
Write-Host "Starting WinRM on $computer..." | |
Start-Process -WindowStyle Hidden -FilePath "wmic.exe" -ArgumentList "/node:`"$computer`" process call create `"cmd.exe /c winrm quickconfig -quiet -force`"" -Wait | |
Write-Host "Connecting to $computer..." | |
Enter-PSSession -ComputerName $computer | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ChildDirectories = Get-ChildItem -Directory -Path "." #Gets all Applications Sub Folders | |
foreach($Directory in $ChildDirectories) { #Loops through each Applications Sub Folder | |
$Files = $Directory.GetFiles() #Gets all files within each Applications Sub Folder | |
foreach($File in $Files) { #Loops through each file within each Applications Sub Folder | |
if($File.Name -eq "SuperLTI.exe") { #If a sub directory within an Applications Sub Folder contains SuperLTI.exe | |
Copy-Item -Path "SuperLTI.exe" -Destination $Directory #Replace it with a copy at Applications root. | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> | |
<title>below average - login</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
* { | |
font-family:arial; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>CPIT - Hub</title> | |
<style> | |
* { | |
font-family:Arial; | |
color:black; | |
} | |
#menubar { | |
position:fixed; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Udger to Palo Alto Mine Meld | |
#Author: Dylan Bickerstaff | |
#Date: Tuesday, November 12th 2019 | |
#Version: 0 | |
$UdgerAccessKey = "" | |
$MineMeldOutFile = ".\minemeld.out.txt" | |
"Downloading Udger Database..." | |
Invoke-WebRequest -Uri "http://data.udger.com/$($UdgerAccessKey)/udgerdb_v3.dat" -OutFile ".\udgerdb_v3.dat" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pfSense update NPT Mappings. (/56 Only) | |
$rt = "ba-rt1" #Router Hostname | |
$un = "root" #UserName | |
$ke = ".\ssh_key" #Key File | |
$it = "lagg0.4094" #IPv6 Tracked Interface | |
$mp = ".\mappings.xml" #NPT Mappings File | |
$fp = "C:\Jobs\pfSense\Update NPT\" #This File Location | |
$ln = 3 #Line # to extract v6 Address | |
$r1 = " inet6 " #Remove from line | |
$r2 = " prefixlen 64" #Remove from line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$version = "1" | |
$tries = 10 | |
$services = | |
"MsrLibHost", | |
"FCCClientSvc" | |
function Stop-Services { | |
foreach($service in $services) { | |
try { |
OlderNewer