📔
Blog
HOMEPORTFOLIOHIRE MEGITHUB
  • Home
  • 🙇Database
    • Oracle Database
      • 🍏LDOM Oracle VM for SPARC
      • 🍎Oracle Processor Core Factor Table
      • 🍐Check Oracle Error in Alert Log with SQL*Plus
      • 🍊Create Oracle Corrupt Data Block
      • 🍋RMAN Backup Tuning
      • 🍌Install NTP on Oracle Linux
      • 🍉Best Practice Check Tablespace Size on Oracle
      • 🍇Fix Password File Missing on Oracle
      • 🫐Check Oracle Error Message with OERR
      • 🍓Change and Restore Password on Oracle
      • 🍈Fix Oracle could not find Archive Log
      • 🍒Check Database Uptime on Oracle
      • 🍑Fix Oracle Date Format
      • 🥭Identity Column on Oracle
      • 🍍Fix Oracle Service handle not Initialized
      • 🥥GoldenGate Credential Store
      • 🥝Create Auto Increment on Oracle
      • 🍅Recompile Object Invalid on Oracle
      • 🍆Create Database Link on Oracle
      • 🥑Cluster vs Grid
      • 🫒Install DBSAT for Oracle Database 11gR2
      • 🥦Fix Oracle End-of-File on Communication Channel
      • 🥬Fix Oracle Database Out of Memory
      • 🫑Export and Import Oracle Database with Data Pump
      • 🥒Monitor Log Switch each Hour of Day on Oracle with SQL*Plus
      • 🌶️Change Column Format on Oracle with SQL*Plus
      • 🌽Check Version Component on Oracle with SQL*Plus
      • 🥕Check Database Size on Oracle with SQL*Plus
      • 🧄Migrate Oracle Database with RMAN
      • 🧅Fix Enterprise Manager Error OC4J Configuration issue
    • Microsoft SQL Server
      • 💊Backup SQL Server Database with SQL Backup and FTP
      • 💉Backup Full SQL Server with SQL Script
  • 🙇‍♀️INFRASTRUCTURE
    • DNS
      • 📦Fix Ldap Error Search Configuration Naming Context failed
      • 📦Join Domain to Active Directory on Ubuntu 22.04
      • 📦Sender Policy Framework Record
      • 📦Migrate User on Active Directory to Another Domain
      • 📦Fix can’t Delete Object on Active Directory
      • 📦Create Conditional Forwarder DNS on Windows Server 2012 R2
      • 📦Create Stub DNS Zone on Windows Server 2012 R2
      • 📦Domain Permission Admin
      • 📦Domain Model
      • 📦Active Directory ( AD ) 101
    • Network
      • 👥Local Area Network 101
      • 👥Export and Import Session on SecureCRT
      • 👥VPN Protocol
    • Security
      • 🎩Scam Mail
      • 🎩Disable Antivirus Protection on Windows 10
      • 🎩Fix Security Certificate is not Trusted
      • 🎩Best Practice Ransomware Protection
      • 🎩Digital Forensic
      • 🎩Check Installed Patch Compare Vulnerable on Windows 10
    • ISO 27001
      • 🐶Scenario-Based Risk
  • 🙇‍♂️Server
    • Windows Server
      • 👺Upgrade Windows Server 2003 SP2 to Windows Server 2008 R2
      • 👺Best Practice After Install Windows Server
      • 👺Windows Server Product Key
      • 👺How to convert PFX to CRT and KEY File on Windows Server
      • 👺Check Security Windows Application with Winchecksec
      • 👺Fix Internet Explorer Block Website on Windows Server 2019
      • 👺Install Windows Admin Center on Windows Server 2019
    • Linux Server
      • 👿Fix SSH Error: no matching key exchange method found
      • 👿Fix Ubuntu Package Manager Lock: Could not get lock /var/lib/dpkg/lock
      • 👿Install Kali Linux GUI on Windows Subsystem for Linux
      • 👿How to get DateTime History on Linux
      • 👿Change IP and Hostname on Ubuntu 18.04
      • 👿iSCSI Initiator on CentOS 7
      • 👿TMUX Command
      • 👿Create User on Linux
      • 👿Change Username and UID / GID on Linux
    • User
      • 👽OSQuery
      • 👽How to decompress GZIP, BZIP and TAR File on Windows 10
      • 👽Upgrade Windows 10 Version 1803 to 1903
      • 👽Join Windows Insider Program on Windows 10
      • 👽Fix RDP Error Exceeded the Maximum Number of Allowed Connections
      • 👽How to enable DNS over HTTPS on Firefox
  • 🧑‍🍼Software
    • VMware
      • 🌠Fix Deploy OVA Error no Support Hardware Versions on VMware ESXi 6.7
      • 🌠VMware Workstation and VMware ESXi Compatible
      • 🌠Promiscuous Mode and Forged Transmits on VMware vSphere 6.5
      • 🌠Update Patches on VMware ESXi 6.7 with ESXCLI
      • 🌠Fix Alert Hyperthreading Unmitigated on VMware ESXi 6.7
      • 🌠Fix VMware Error Client Session is no Longer Authenticated
      • 🌠Merge AVHDX and VHDX for Convert to VMDK
      • 🌠Convert VMDK to VHDX with Microsoft Virtual Machine Converter
      • 🌠Fix VMware Workstation Device / Credential Guard are not Compatible
      • 🌠Convert VMDK to VHDX with StarWind V2V Converter
    • Veeam Backup
      • 🧊Install Veeam Backup & Replication 11 on Windows
      • 🧊Backup Planning Matrix
      • 🧊Fix Veeam Backup Error Full Backup File Merge Failed
    • ESET
      • 🐕‍🦺Fix can’t Uninstall ESET Management Agent
  • 👩‍🍼Programming
    • Fundamental
      • 🔵ID Token vs Access Token
      • 🔴NULL vs NOT NULL
      • 🟣Microsoft Universal Data Access
      • 🟡Flow Graph Aptitude Test
      • 🟠C Pyramid – Part I
      • 🟤C Pyramid – Part II
      • ⚪JSON Web Token
      • 🟦Memory Architecture
    • Tools
      • AI Tools
        • ❤️Generative AI Tools
        • 💙Prompt Tools
        • 💚Dataset Tools
      • Extension Tools
        • ❄️Top Extension Microsoft Edge
        • ❄️Top Extension Visual Studio Code
      • Other Tools
        • 🚗Business Tools
        • 🚕CI/CD Tools
        • 🚙Design Tools
        • 🛻Freelance Tools
        • 🚌Hands-On Lab Tools
        • 🚎Productive Tools
        • 🏎️Programming Tools
        • 🚓SEO Tools
        • 🚑Mac Tools
      • Package Tools
        • 🧶Top NuGet Package .NET Core
      • Visual Studio Code
        • 🌑How to show Folder .git in Visual Studio Code
        • 🌑Fix CMake not Found Visual Studio
        • 🌑Backup Extension for Visual Studio Code
    • Python
      • Poetry
        • 🐍Poetry Virtual Environment Command
    • PHP
      • Laravel
        • 🍂Laravel Redis Key-Value Store
    • .NET Core
      • 🐹.NET Core Automatic Code Review with SonarQube
      • 🐹.NET Core Disable Authentication in Development Environment
      • 🐹Overview .NET Core
  • 👨‍🍼Other
    • Blog
      • 🎃Blog Dell
      • 🎃Blog Gitbook
      • 🎃Blog Network
    • Big Data
      • 🐱Big Data ของกระทรวงสาธารณสุข
    • Chat Bot
      • Chatfuel
        • 🍭Facebook Chatbot with Chatfuel
      • Dialogflow
        • ⛱️Dialogflow Connect Multiple Firebase Realtime Database
        • ⛱️Chatbot with Dialogflow and Firebase Realtime Database
    • Docker
      • 🐳How to Trust Sign Image on Docker
      • 🐳Upgrade Docker Compose
      • 🐳Install Nginx-RTMP and FSTV-Monitor on Docker
    • Machine Learning
      • 🧤PC SPEC for Deep Learning 2021
      • 🧤Install YOLO Object Detection on Windows 10
      • 🧤Thai Natural Language Processing with Python
      • 🧤Install Tensorflow with GPU on Windows 10
      • 🧤PC SPEC for Deep Learning 2019
      • 🧤Speech to Text with Google API
      • 🧤CUDA-Z
      • 🧤DVC Version Control for Machine Learning
    • Standard
      • 🧬Digital ID
      • 💻Computer Naming Convention
      • 🎁มาตรฐานข้อมูลกลาง
    • Policy
      • 🍔GDPR & PDPA
      • 🍟TDPG 2.0
      • 🍕Cookie Consent
    • WSL
      • 🧿How to move Distribution Data WSL to new Location
      • 🧿Export and Import Distro on Windows Subsystem for Linux
      • 🧿Install Docker on Windows Subsystem for Linux
  • 🧙‍♂️MICROSOFT 365
    • Outlook
      • 📩How to enable Forward Email on Microsoft Office 365 to Another Domain
      • 📩Fix Mailbox Storage Limit on Microsoft Office 365 with Compliance Search
      • 📩Fix can’t Search Thai Language on Microsoft Outlook
    • Power Automate
      • 🤖How to Rename all Files in Folder use UUID with Power Automate Desktop
      • 🤖How to get SharePoint List Comment with Power Automate
      • 🤖How to post Approve Comment to SharePoint List with Power Automate
      • 🤖Generate Unique ID when Submit Microsoft Form with Power Automate
      • 🤖Notification Maintenance when SharePoint List Create with Power Automate
      • 🤖Send Email and Share File Word Document with Power Automate
      • 🤖Generate Word Document when Submit Microsoft Form with Power Automate
Powered by GitBook
On this page
  • Feature
  • Requirement
  • Get Started

Was this helpful?

  1. Server
  2. Windows Server

Check Security Windows Application with Winchecksec

Last updated 1 year ago

Was this helpful?

Winchecksec เป็น Open Source Security Framework ของทางฝั่ง Windows Application ที่ใช้ในการตรวจสอบความปลอดภัยของโปรแกรม อย่างการที่แฮกเกอร์สามารถนำโค้ดไปแทรกรันบนโปรแกรม แล้วทำการเรียก System Call ซึ่งโดยปกติจะมี Address ที่ตายตัว แต่หากทำการ Random Address ด้วยเทคนิค ASLR ก็จะสามารถเพิ่มความปลอดภัยให้กับโปรแกรม

Feature

  • Address-Space Layout Randomization ( ASLR ) & High-Entropy ASLR ( HEASLR )

  • Authentication & Integrity Protection

  • Data Execution Prevention ( DEP )

  • Manifest Isolation

  • Structured Exception Handling ( SEH ) and SafeSEH

  • Control Flow Guard ( CFG ) and Return Flow Guard ( RFG )

  • Guard Stack ( GS )

Requirement

Get Started

  • ทำการดาวน์โหลด Winchecksec จาก GitHubgit clone --recurse -submodules https://github.com/trailofbits/winchecksec.git

C:\>
cd winchecksec
  • ทำการสร้างโฟลเดอร์ build

C:\winchecksec>
mkdir build
C:\winchecksec>
cd build
  • ทำการกำหนด Build System Generate

C:\winchecksec\build>
cmake -G "Visual Studio 15 2017 Win64" ..
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18363.
-- The C compiler identification is MSVC 19.16.27034.0
-- The CXX compiler identification is MSVC 19.16.27034.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The following ICU libraries were not found:
--   uc (required)
-- Failed to find all ICU components (missing: ICU_INCLUDE_DIR ICU_LIBRARY _ICU_REQUIRED_LIBS_FOUND) (Required is at least version "55.0")
-- Build type: RelWithDebInfo
-- Build Shared: OFF
-- Build Command Line Tools: ON
-- Install prefix: /usr
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Work/Git/winchecksec/build
  • ทำการรัน Build Program

C:\winchecksec\build>
cmake --build . --config Release
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  Building Custom Rule D:/Work/Git/winchecksec/pe-parse/pe-parser-library/CMakeLists.txt
  Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27034 for x64
  Copyright (C) Microsoft Corporation.  All rights reserved.

  cl /c /I"D:\Work\Git\winchecksec\pe-parse\pe-parser-library\include" /Zi /W4 /WX /diagnostics:classic /O2 /Ob2 /D WIN32 /D _WINDOWS /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forSco
  pe /Zc:inline /GR /Fo"pe-parser-library.dir\Release\\" /Fd"pe-parser-library.dir\Release\pe-parser-library.pdb" /Gd /TP /analyze /errorReport:queue "D:\Work\Git\winchecksec\pe-parse\pe-parser-library\src\buffer.cpp" "D:\Work\Git\winch
  ecksec\pe-parse\pe-parser-library\src\parse.cpp" "D:\Work\Git\winchecksec\pe-parse\pe-parser-library\src\unicode_codecvt.cpp"

  buffer.cpp
  parse.cpp
  unicode_codecvt.cpp
  Compiling...
  Generating Code...
  pe-parser-library.vcxproj -> D:\Work\Git\winchecksec\build\pe-parse\pe-parser-library\Release\pe-parser-library.lib
  Building Custom Rule D:/Work/Git/winchecksec/pe-parse/dump-pe/CMakeLists.txt
  Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27034 for x64
  Copyright (C) Microsoft Corporation.  All rights reserved.

  cl /c /I"D:\Work\Git\winchecksec\pe-parse\pe-parser-library\include" /Zi /W4 /WX /diagnostics:classic /O2 /Ob2 /D WIN32 /D _WINDOWS /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forSco
  pe /Zc:inline /GR /Fo"dump-pe.dir\Release\\" /Fd"dump-pe.dir\Release\vc141.pdb" /Gd /TP /analyze /errorReport:queue "D:\Work\Git\winchecksec\pe-parse\dump-pe\main.cpp"

  main.cpp
  dump-pe.vcxproj -> D:\Work\Git\winchecksec\build\pe-parse\dump-pe\Release\dump-pe.exe
  Building Custom Rule D:/Work/Git/winchecksec/CMakeLists.txt
  Checksec.cpp
d:\work\git\winchecksec\Checksec.h(28): warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'checksec::ChecksecError' [D:\Work\Git\winchecksec\build\winchecksec.vcxproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\stdexcept(157): note: see declaration of 'std::runtime_error'
  d:\work\git\winchecksec\Checksec.h(28): note: see declaration of 'checksec::ChecksecError'
d:\work\git\winchecksec\Checksec.h(57): warning C4251: 'checksec::Checksec::filepath_': class 'std::basic_string<char,std::char_traits,std::allocator>' needs to have dll-interface to be used by clients of class 'checksec::Ch
ecksec' [D:\Work\Git\winchecksec\build\winchecksec.vcxproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: see declaration of 'std::basic_string<char,std::char_traits,std::allocator>'
     Creating library D:/Work/Git/winchecksec/build/Release/winchecksec.lib and object D:/Work/Git/winchecksec/build/Release/winchecksec.exp
  winchecksec.vcxproj -> D:\Work\Git\winchecksec\build\Release\winchecksec.dll
  Building Custom Rule D:/Work/Git/winchecksec/CMakeLists.txt
  Checksec.cpp
  main.cpp
  Generating Code...
  winchecksec-bin.vcxproj -> D:\Work\Git\winchecksec\build\Release\winchecksec.exe
  Building Custom Rule D:/Work/Git/winchecksec/CMakeLists.txt
  • ทำการรันโปรแกรมด้วย Winchecksec

.\Release\winchecksec.exe C:\Windows\notepad.exe
Dynamic Base    : true
ASLR            : true
High Entropy VA : true
Force Integrity : false
Isolation       : true
NX              : true
SEH             : true
CFG             : true
RFG             : false
SafeSEH         : false
GS              : true
Authenticode    : false
.NET            : false

อ่านเพิ่มเติม :

🙇‍♂️
👺
Install CMake
Install Visual Studio 2017
http://bit.ly/32Wujxv