是否可以为某些 Active Directory 用户编写一种双因素身份验证形式?
我正在考虑设置一种方法,某些员工在登录我们公司网络上的电脑时需要通过短信输入代码。每当我尝试查找此内容时,我得到的只是为您提供付费服务。我们的预算有限,我想看看是否可以自己用 Python 或 Powershell 之类的东西制作一个。
I'm looking into setting up a way where certain staff would need to input a code from an sms text when they log into their PCs on our company network. Whenever I tried looking this up, all I got were paid services to do it for you. We're on a budget and I'd like to see if I could just make one myself in like Python or Powershell or something.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
直接回答您的问题。是的,有可能!
但是,我在这里对“免费”的内容并不完全熟悉,但是我看到有一个用于发送SMS的开源服务器。
https://github.com/typpo/textbelt
我的理解是,如果您亲自运行服务器,图书馆为您提供从中发送SMS的简便方法,但是价格也不错。 TextBelt上的最高报价似乎
$ 45/5000
。您想为DIY 2FA提供一些代码,您可能想在其他网站和教程中阅读有关它的更多信息,因此您可以避免某种攻击,例如:
https://www.twilio.com/ Security/the-pitfalls of Developing Your-own-2fa
如果您不使用任何库,则curl examlpe非常简单,可以直接实现围绕它的模块或脚本。
祝你好运!
To answer your question directly. Yes, it is possible!
But I am not entirely familiar with what is been "free" here, but I see there is an open source server for sending sms.
https://github.com/typpo/textbelt
My understanding is that if you run the server yourself, the library provide you with an easy way to send SMS from it, but the pricing is not so bad either. The top offer at textbelt seems
$45/5000
.You want to have some code to DIY 2FA, you might wanna read more about it in other websites and tutorials, so you can avoid some sort of attacks, there is planty on the internet about it, for example:
https://www.twilio.com/learn/account-security/the-pitfalls-of-developing-your-own-2fa
If you are not using any library, the curl examlpe is pretty straight forward to implement a module or a script around it.
Good luck!