Skip to content

Instantly share code, notes, and snippets.

View VitorDiToro's full-sized avatar
📑

Vitor Di Toro VitorDiToro

📑
  • National Institute of Telecommunications
  • Santa Rita do Sapucaí - MG, Brazil
  • 02:58 (UTC -03:00)
  • LinkedIn in/vitorditoro
View GitHub Profile
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Author : Vitor Rodrigues Di Toro
# E-Mail : vitorrditoro@gmail.com
# Date : 14/03/2018
# Last Update : 19/03/2018
#
import unittest
@VitorDiToro
VitorDiToro / ip_rdp.cpp
Last active January 16, 2020 17:17
Poc to validate if has an RDP connection and get the client IP
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#define WIN32_LEAN_AND_MEAN
#include <iostream>
#include <string>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <iphlpapi.h>
#include <combaseapi.h>