-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
80 additions
and
9 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* @Author: krxkli [email protected] | ||
* @Date: 2024-09-12 21:07:35 | ||
* @LastEditors: krxkli [email protected] | ||
* @LastEditTime: 2024-09-12 21:10:30 | ||
* @FilePath: \CommonNative\pcap_dump\acquire_permission.cpp | ||
* @Description: | ||
* | ||
* Copyright (c) 2024 by ${krxkli}, All Rights Reserved. | ||
*/ | ||
#include <cstring> | ||
#include <cstdlib> | ||
#include <ctime> | ||
#include "pcap_dumper.h" | ||
|
||
/** | ||
* @description: Configure the PCAP Files output directory | ||
* @return {*} | ||
*/ | ||
void GetUserDownloadDir(const char* dir) { | ||
const char TAG[] = "AcquirePermission"; | ||
|
||
time_t currentTime; | ||
struct tm *localTime; | ||
char dateTimeString[100]; | ||
// 获取当前时间 | ||
currentTime = time(nullptr); | ||
|
||
// 将当前时间转换为本地时间 | ||
localTime = localtime(¤tTime); | ||
|
||
// 格式化日期和时间字符串 | ||
strftime(dateTimeString, sizeof(dateTimeString), "Crack_%Y_%m_%d_%H_%M_%S.pcap", localTime); | ||
|
||
// 连接路径 | ||
char file_name[256]; | ||
sprintf(file_name, "%s/%s", dir, dateTimeString); | ||
|
||
pcap_dump_init(file_name); | ||
} |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
#ifndef CRACKMM_CHEAT_H | ||
#define CRACKMM_CHEAT_H | ||
|
||
extern "C" { ; | ||
extern "C" { | ||
#include "zdtun.h" | ||
} | ||
|
||
|
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