BC-SECURITY / Starkiller

Starkiller is a Frontend for PowerShell Empire.
https://www.bc-security.org/post/an-introduction-to-starkiller
MIT License
1.37k stars 196 forks source link

use starkiller client but there's a 500 error on empire restful api #4

Closed J0o1ey closed 4 years ago

J0o1ey commented 4 years ago

Dear author I use empire3.1.1 on my server Using command "./empire --rest --username admin password admin" to create a teamserver But when I use starkiller client on my windows(admin,admin) to connect to empire restful api There is a 500 error on the empire restfulapi output,and there is no change on Starkiller's Initial interface(even no error,just stay in the initial stauts) If you're available to help me, I will feel much honored

vinnybod commented 4 years ago

Please update your issue to use the issue template. It's meant to get all the information out in the open to save everyone time.

With that said looking at your command, you aren't setting the password properly. ./empire --rest --username admin --password password

If you continue to get 500s, open the developer console in starkiller to get the endpoint and any message included in the response.

tyraniter commented 4 years ago

I met the same question and i found the reason. The user login api query the password in db with the sql ""SELECT password from users WHERE username = ? AND enabled = true LIMIT 1" in lib/common/user.py,but the value of "enable" in db is 1,so the server throw an exception of "{"error":"OperationalError('no such column: true',)"}" with error code 500

J0o1ey commented 4 years ago

Thanks for a lot,sir

haha,Where are you from?Are you a red teamer?

------------------ 原始邮件 ------------------ 发件人: "tyraniter"<notifications@github.com>; 发送时间: 2020年3月13日(星期五) 中午11:36 收件人: "BC-SECURITY/Starkiller"<Starkiller@noreply.github.com>; 抄送: "J0o1ey’"<547006660@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [BC-SECURITY/Starkiller] use starkiller client but there's a 500 error on empire restful api (#4)

I met the same question and i found the reason. The user login api query the password in db with the sql ""SELECT password from users WHERE username = ? AND enabled = true LIMIT 1" in lib/common/user.py,but the value of "enable" in db is 1,so the server throw an exception of "{"error":"OperationalError('no such column: true',)"}" with error code 500

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

vinnybod commented 4 years ago

Hey @tyraniter thanks for tracking it down! This is tied to older versions for SQLite and will be fixed in 3.1.2 of Empire. Until that release is cut, you can run the dev branch of Empire.

Empire PR: https://github.com/BC-SECURITY/Empire/pull/120

tyraniter commented 4 years ago

Thanks for a lot,sir haha,Where are you from?Are you a red teamer? ------------------ 原始邮件 ------------------ 发件人: "tyraniter"<notifications@github.com>; 发送时间: 2020年3月13日(星期五) 中午11:36 收件人: "BC-SECURITY/Starkiller"<Starkiller@noreply.github.com>; 抄送: "J0o1ey’"<547006660@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [BC-SECURITY/Starkiller] use starkiller client but there's a 500 error on empire restful api (#4) I met the same question and i found the reason. The user login api query the password in db with the sql ""SELECT password from users WHERE username = ? AND enabled = true LIMIT 1" in lib/common/user.py,but the value of "enable" in db is 1,so the server throw an exception of "{"error":"OperationalError('no such column: true',)"}" with error code 500 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

I'm from China.I guess you are Chinese,too.

J0o1ey commented 4 years ago

哈哈,兄弟能留个联系方式嘛,认识一下

------------------ 原始邮件 ------------------ 发件人: "tyraniter"<notifications@github.com>; 发送时间: 2020年3月13日(星期五) 下午2:58 收件人: "BC-SECURITY/Starkiller"<Starkiller@noreply.github.com>; 抄送: "J0o1ey’"<547006660@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [BC-SECURITY/Starkiller] use starkiller client but there's a 500 error on empire restful api (#4)

Thanks for a lot,sir haha,Where are you from?Are you a red teamer? … ------------------ 原始邮件 ------------------ 发件人: "tyraniter"<notifications@github.com>; 发送时间: 2020年3月13日(星期五) 中午11:36 收件人: "BC-SECURITY/Starkiller"<Starkiller@noreply.github.com>; 抄送: "J0o1ey’"<547006660@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [BC-SECURITY/Starkiller] use starkiller client but there's a 500 error on empire restful api (#4) I met the same question and i found the reason. The user login api query the password in db with the sql ""SELECT password from users WHERE username = ? AND enabled = true LIMIT 1" in lib/common/user.py,but the value of "enable" in db is 1,so the server throw an exception of "{"error":"OperationalError('no such column: true',)"}" with error code 500 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

I'm from China.I guess you are Chinese,too.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.