-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
edriver & edriver-rs: support kernel version v6.x
- Loading branch information
1 parent
1fab004
commit bc3712b
Showing
62 changed files
with
283 additions
and
249 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ use std::{ | |
}; | ||
|
||
pub mod execve; | ||
pub mod rasp_java; | ||
|
||
pub trait Event { | ||
fn init() -> Result<()>; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
use anyhow::Result; | ||
// use anyhow::Result; | ||
|
||
#[derive(Debug, Clone, Default)] | ||
pub struct ProcessInfo { | ||
pub pid: u32, | ||
pub cmdline: Option<String>, | ||
pub exe_name: Option<String>, | ||
pub exe_path: Option<String>, | ||
pub maps: Option<Vec<Map>>, | ||
} | ||
// #[derive(Debug, Clone, Default)] | ||
// pub struct ProcessInfo { | ||
// pub pid: u32, | ||
// pub cmdline: Option<String>, | ||
// pub exe_name: Option<String>, | ||
// pub exe_path: Option<String>, | ||
// pub maps: Option<Vec<Map>>, | ||
// } | ||
|
||
impl ProcessInfo { | ||
pub fn from_pid(pid: u32) -> Result<Self> { | ||
Ok(()) | ||
} | ||
// impl ProcessInfo { | ||
// pub fn from_pid(pid: u32) -> Result<Self> { | ||
// Ok(()) | ||
// } | ||
|
||
pub fn read_cmdline(&mut self) -> Option<String> { | ||
format!("/proc/{}/cmdline", self::pid); | ||
} | ||
} | ||
// pub fn read_cmdline(&mut self) -> Result<String> { | ||
// let cmdline = fs::read_to_string(format!("/proc/{}/cmdline", pid))?; | ||
// } | ||
// } |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package cmd | ||
|
||
import ( | ||
"hades-ebpf/user/decoder" | ||
"edriver/pkg/decoder" | ||
"os" | ||
"sort" | ||
|
||
|
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package constants | ||
|
||
// Debug flag | ||
var Debug bool | ||
var EventFilter []string |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package constants | ||
|
||
// The hadesoss is now hold by Hades team. | ||
// Add local address to DNS if you deploy Hades in prod | ||
const DOWNLOAD_URL = "http://hadesoss.com/" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package constants | ||
|
||
var VERSION string |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ package cache | |
|
||
import ( | ||
"bytes" | ||
"edriver/utils" | ||
"fmt" | ||
"hades-ebpf/utils" | ||
"os" | ||
"strings" | ||
"time" | ||
|
2 changes: 1 addition & 1 deletion
2
plugins/edriver/user/cache/hash.go → plugins/edriver/pkg/cache/hash.go
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package cache | ||
|
||
import ( | ||
"hades-ebpf/utils" | ||
"edriver/utils" | ||
|
||
"github.com/chriskaliX/SDK/utils/hash" | ||
) | ||
|
Oops, something went wrong.