- Open Powershell with administrator privilege.
- Type
Get-Disk | ft -auto
and find the disk number where the OS is installed. - Type
mbr2gpt.exe /validate /disk:[number] /allowFullOS
Ifsuccess
is in the prompt output, conversion is possible.
If there isn't, you shoud check https://docs.microsoft.com/ko-kr/windows/deployment/mbr-to-gpt to satisfy some condition to do it. - Type
mbr2gpt.exe /convert /disk:[number] /allowFullOS
If there is a line starts withBefore
and ends withUEFI mode
, you are done. - Restart the PC and enter to CMOS.
- Change BIOS to UEFI mode and enable Secure Boot.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface GraphNode { | |
id: string | number; | |
type: DrawerTypes; | |
scale: number; | |
hover: boolean; | |
active: boolean; | |
neighbors: (D3GraphNode | GraphEdge)[]; | |
} | |
interface D3GraphNode extends d3.SimulationNodeDatum, GraphNode { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Network(Base, IdMixin, TimestampMixin): | |
ip_address = sa.Column(IPAddressType, nullable=False) | |
netmask = sa.Column(IPAddressType, nullable=False) | |
name = sa.Column(sa.String(64), nullable=False, default=lambda: str(uuid.uuid4()), unique=True) | |
class Host(Base, IdMixin, TimestampMixin): | |
name = sa.Column(sa.String(64), nullable=False) | |
addr = sa.Column(sa.String(256), nullable=False) | |
is_compromised = sa.Column(sa.Boolean, nullable=False, default=False) |
OpenSCADA is platform which supports high fidelity emulation of IEC 6111-3 compliant PLCs and SCADA protocols. You can check details at OpenSCADA documentation.
- Ubuntu 18.04.3 LTS (x86_64)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias pip-upgrade-all="pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U" | |
alias p="python" | |
alias l="ls" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
class Foo(object): | |
def __init__(self): | |
self.__private_foo = 'private foo' | |
def decorator(self, option): | |
print 'decorator argument:', option | |
print self.__private_foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# alarm() doesn't work in nsjail. So you need to add -t option | |
nsjail -d --log /var/log/nsjail/contact -Ml --port 10001 -u 65534:10001 -g 65534:10001 \ | |
--disable_clone_newnet -R /opt/challenges/contact -E PATH=/usr/local/bin:/usr/bin:/bin \ | |
-E HOME=/opt/challenges/contact -R /bin/ -R /lib/ -R /lib32/ -R /lib64/ -R /usr/ -R /sbin/ \ | |
-T /dev -R /dev/urandom -R /etc/ssl/certs -R /etc/resolv.conf -R /run/resolvconf/ -T /tmp/ \ | |
-t 300 -- /opt/challenges/contact/contact |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
from functools import wraps | |
from flask import abort, request | |
def is_json_request(): | |
""" | |
Returns True if the request is json request else False. | |
For example:: |
NewerOlder