Friday, November 21, 2014

CMD Dictionary

Quick Dictionary Reader for CMD
//CMD DICTIONARY STUFF

@echo off
setlocal delayed expansion
for /f "delims=" %%i in ('type "C:\rdictionary.txt" ') do echo Running
net user *
%%i

Two Part Network Monitor

This checks the network connections through netstat, monitors changes and then notifies the users if changes are made quickly, indicating a possible attack. Here is the checker:
float r=0;
float a=0'
void setup() {
  size(600,50);
  String one[]=loadStrings("1.txt");
  String two[]=loadStrings("2.txt");
  println(one.length);
  println(two.length);
  for( int t=0;r<one.length;r++){
    if(one[t] != two[t]) {
        if(a<5){
            a=a+1;
            
        }
        if(a=5){
            
      textSize(50);
     text("Possible Intrusion",10,40);
            a=0;
}
}
}
And here is the netstat:
//NETSTAT
:A

netstat > 1.txt

TIMEOUT 7>NUL

netstat >2.txt

TIMEOUT 5>NUL


GOTO A

Mellify: Automatic Online Color Coding for Code

<!doctype html>
<html lang="en">
<head>
    
  <meta charset="utf-8">
  <title>contains demo</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

    
 
<script>
$( "div:contains('stp')" ).css( "color", "red" );
$( "div:contains('fin')" ).css( "color", "red" );
$( "div:contains('#')" ).css( "color", "purple" );
$( "div:contains('ping')" ).css( "color", "green" );
$( "div:contains('Attach')" ).css( "color", "orange" );
$( "div:contains('If')" ).css( "color", "grey" );
</script>

CMD Computer Info

color 9
setlocal enableextensions enabledelayedexpansion

for /f "delims=" %%l in ('wmic computersystem get Manufacturer^,Model^,SystemType^,TotalPhysicalMemory /format:list') do >nul 2>&1 set "System_%%l"
for /f "delims=" %%l in ('wmic cpu get * /format:list') do >nul 2>&1 set "CPU_%%l"
for /f "delims=" %%l in ('wmic os get FreePhysicalMemory^,TotalVisibleMemorySize /format:list') do >nul 2>&1 set "OS_%%l"
set /a OS_UsedPhysicalMemory=OS_TotalVisibleMemorySize-OS_FreePhysicalMemory

for /f "delims=" %%l in ('wmic volume get DriveLetter^,FreeSpace /format:list') do (
    >nul 2>&1 set "TEMP_%%l"
    if "!TEMP_DriveLetter:~1,1!"==":" if defined TEMP_FreeSpace set StorageSpace_!TEMP_DriveLetter:~0,2!=!TEMP_FreeSpace:~0,-1!&set TEMP_DriveLetter=&set TEMP_FreeSpace=
)


echo Manufacturer: %System_Manufacturer%
echo Model: %System_Model%
echo Processor Type: %PROCESSOR_ARCHITECTURE%
echo Processor Size: %CPU_AddressWidth%
echo System Type: %System_SystemType%
echo Storage Space:
set StorageSpace_
echo RAM total: %OS_TotalVisibleMemorySize% KiB
echo RAM free: %OS_FreePhysicalMemory% KiB
echo RAM used: %OS_UsedPhysicalMemory% KiB
echo Percent Ram: 
SET /A Result=(%OS_UsedPhysicalMemory%/%OS_TotalVisibleMemorySize%)

echo %Result%
@echo off
TIMEOUT 10>nul
cls
GOTO A