Skip to content

Instantly share code, notes, and snippets.

View tuantmb's full-sized avatar
😹

Tuan T tuantmb

😹
  • Vietnam
View GitHub Profile
@tuantmb
tuantmb / Fix_linux_vmware_gcc_not_found.md
Last active September 22, 2017 16:09
Fix Error "VMware Kernel Modules Updater - gcc 6.4.0 compiler not found"

As the error description said, the gcc 6.4.0 compiler is not found (your current gcc version maybe also not be 6.x version). So what we need to do is install gcc 6.x version. The fix flow as below:

  • Check & install gcc version 6.
  • Get full path of the new gcc (version 6) by using locate or which command with parameter is gcc-6.
  • Back to the VMware Kernel Modules Updater, browse the full path of the gcc-6 (mine is */usr/bin/gcc-6) ==> Click Install and provide root password to continue initialize vmware.

Another way you can relink the gcc default command (/usr/bin/gcc) by the fullpath of gcc-6 (/usr/bin/gcc-6).

So in my Kali Linux 2017.1, I did like these:

@tuantmb
tuantmb / Info_linux_apt_upgrade_vs_dist-upgrade.md
Created September 23, 2017 09:17
The differences between apt upgrade vs apt dist-uprade
upgrade
    upgrade is used to install the newest versions of all packages
    currently installed on the system from the sources enumerated in
    /etc/apt/sources.list. Packages currently installed with new
    versions available are retrieved and upgraded; under no
    circumstances are currently installed packages removed, or packages
    not already installed retrieved and installed. New versions of
    currently installed packages that cannot be upgraded without
    changing the install status of another package will be left at
@tuantmb
tuantmb / Fix_Windows_xshell_forget_master_password.md
Created September 26, 2017 00:59
Forget master password xshell (netsarang)
@tuantmb
tuantmb / Windows_server__Edition_comparing.md
Last active October 4, 2017 16:52
Comparing three version of Windows Server #windows #comparison #standard #datacenter #webserver

Question:

I need a Windows Server virtual machine for my defensive security labs (log collection, security tool testing) but I don't know which one should fit to my lab?

Answer: Basically, the standard one is enough for me, the two others are not suitable when installing them in a virtual machine. The two have some advanced features in virtualization (Hyper-V), storage, licensing for container so it wil be bad practice when I try to install Windows Server webserver, dataserver edition in a Virtual Machine.

Reference:

  1. https://blogs.technet.microsoft.com/ausoemteam/2017/03/03/comparison-of-standard-and-datacenter-editions-of-windows-server-2016/
  2. https://community.spiceworks.com/topic/1960878-3-differences-between-datacenter-and-standard-editions-of-windows-server-2016
@tuantmb
tuantmb / Fix_TimeSync_Windows10.md
Created November 2, 2017 15:58
* 2017/11/02 - fix time synchronisation problem in Windows 10

Problems: My Windows 10 ussually has wrong time after I have fixed it after 3 - 5 days. The time server had been set with update automatically option was checked but it not works. So what is my problem?

Windows has a service named Windows Time (check in services.msc) which handles the time updating work. For some unknown reason, this service be set as Manual, so it can't work correctly

==> Run services.msc ==> Double click on Windows Time --> Change Startup Type is Automatically (Delay start) & check the result :)

@tuantmb
tuantmb / rules-both.iptables
Created November 7, 2017 00:51 — forked from jirutka/rules-both.iptables
Basic iptables template for ordinary servers (both IPv4 and IPv6)
###############################################################################
# The MIT License
#
# Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@tuantmb
tuantmb / reflect.py
Created December 9, 2017 16:59
HTTP Echo Server to debug web service
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
@tuantmb
tuantmb / udl_nxlog.conf
Created December 11, 2017 06:51
Notepad++ nxlog configuration highlight
<NotepadPlus>
<UserLang name="nxlog conf" ext="conf htaccess" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="yes" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">03 04 00# 01 02</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@tuantmb
tuantmb / GetRAMInfo.bat
Created December 22, 2017 11:14
Get RAM Information
wmic MEMORYCHIP get BankLabel, DeviceLocator, Capacity, infromationSpeed