Archive

Archive for the ‘HowTo’ Category

Script to check if a windows patch is installed

June 14th, 2017 No comments

VBScript to check if a windows patch is installed on a server or PC

This a simple script that can be used if youn need to check if a specific patch is installed.

Read more…

Categories: VbScripts, Windows Tags: ,

Windows backup vbscript

June 8th, 2017 No comments

Windows VBS script to backup Desktop and Laptop


PROS AND CONS
  • -No delta backup / no incremental (but robocopy only copy files changed)
  • -No encryption (but only the user has access to its folder, check setACL function)
  • -No compression (Could easly be done with 7zip
  • -User can restore (only directly via SHARE)
  • +Free
  • +Easy and simple to Run
  • +Fast
  • +Can backup opened pst files using shadowspwan
  • +Robocopy will only copied files that have been changed
  • -Robocopy will also copy PST everytime (since outlook changes it) (Implemented a check to only copy once a day) Read more…
Categories: Windows Tags: , ,

Block IP bash script

March 30th, 2017 No comments

Still working hard to keep my server security locked down from attacks.

This script checks lighttpd logfile for unusual behaviour

Read more…

amazon aws consulenza

March 1st, 2017 No comments

Amazon aws consulenza freelance progetti in Italia.

Read more…

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:

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…