monitor site IPS

February 23rd, 2017 No comments

I am sick and tired of my site going down, even know its once in a while it just bother me a lot.
So I spent 20m to write this script and block bad IPs even know I use modeavsive to block more then X concurrent connections from one IP my site keeps going down!

Read more…

Categories: bash, BashScripts Tags:

windows 2008 delete update files

February 8th, 2017 No comments

Free up C:\windows space, Windows Update Files

Copy
C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe
to: %systemroot%\System32.
C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui
to: %systemroot%\System32\en-US.

Read more…

Categories: HowTo, Windows Tags:

Centos 7 change root passwd

February 7th, 2017 No comments

How to change root password on Centos 7

  1. reboot press ESC to go into menu, then press ‘e’ to edit
  2. change line of Linux 16 and change ro with rw init=/sysroot/bin/sh
  3. CRTL-X to boot
  4. chroot /sysroot
  5. passwd root
  6. touch /.autorelabel
  7. reboot -f

Read more…

Categories: HowTo, Linux, Security Tags:

check schedulle task nagios

February 3rd, 2017 No comments

Script to get failed schedulle jobs (plugin for Nagios/Centreon)
REQUIRES: schtasks.exe
Tested only Windows 2003

Read more…

Categories: Centreon, Nagios, plugins, script, VbScripts Tags:

vbs to list all local users of Adminisitrator

January 26th, 2017 No comments

VBS Script to list all local users of Adminisitrator and Remote Desktop,id,desctiption,enable/disable, last_login(if local)

Read more…

Windows Enumerate Servers

January 26th, 2017 No comments

Back to some VBS scripting…
This script enumerates all Servers on the current domain and test it with a ping then writes to a server.txt file.

Read more…

Categories: script, VbScripts, Windows Tags: , , , ,

yum update security check script

January 12th, 2017 No comments

simple bash script to check for missing security

this is important to make sure your linux is updated
here is the script:

Read more…

Categories: bash, BashScripts, Linux, Security Tags: , , ,

Failed to read keytab [default]

January 10th, 2017 No comments

When starting sssd in centos 7 I was getting this
ERROR:
Failed to read keytab [default]: No such file or directory

Read more…

Categories: HowTo, Linux Tags: , , ,

centos 7 disable useless services

January 4th, 2017 No comments

This some of the tuning I do on a centos 7 install

REMOVE USLESS NETWORK INTERFACE
brctl delbr virbr0
systemctl get-default
systemctl set-default multi-user.target

Read more…

python nagios scrape

December 22nd, 2016 No comments

Wrote a script in python using beautiful soap to scrub a web page.

Categories: python Tags: , , ,