|
|
@ -21,6 +21,7 @@ use crate::dcerpc::parser;
|
|
|
|
use nom::error::ErrorKind;
|
|
|
|
use nom::error::ErrorKind;
|
|
|
|
use nom::number::Endianness;
|
|
|
|
use nom::number::Endianness;
|
|
|
|
use nom;
|
|
|
|
use nom;
|
|
|
|
|
|
|
|
use std;
|
|
|
|
use std::cmp;
|
|
|
|
use std::cmp;
|
|
|
|
use std::ffi::CString;
|
|
|
|
use std::ffi::CString;
|
|
|
|
|
|
|
|
|
|
|
@ -1375,10 +1376,9 @@ pub const PARSER_NAME: &'static [u8] = b"dcerpc\0";
|
|
|
|
|
|
|
|
|
|
|
|
#[no_mangle]
|
|
|
|
#[no_mangle]
|
|
|
|
pub unsafe extern "C" fn rs_dcerpc_register_parser() {
|
|
|
|
pub unsafe extern "C" fn rs_dcerpc_register_parser() {
|
|
|
|
let default_port = CString::new("[0:65355]").unwrap();
|
|
|
|
|
|
|
|
let parser = RustParser {
|
|
|
|
let parser = RustParser {
|
|
|
|
name: PARSER_NAME.as_ptr() as *const std::os::raw::c_char,
|
|
|
|
name: PARSER_NAME.as_ptr() as *const std::os::raw::c_char,
|
|
|
|
default_port: default_port.as_ptr(),
|
|
|
|
default_port: std::ptr::null(),
|
|
|
|
ipproto: IPPROTO_TCP,
|
|
|
|
ipproto: IPPROTO_TCP,
|
|
|
|
probe_ts: None,
|
|
|
|
probe_ts: None,
|
|
|
|
probe_tc: None,
|
|
|
|
probe_tc: None,
|
|
|
|