mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-10 01:17:59 +03:00
Fixed merge
This commit is contained in:
parent
0e9b6e3cf3
commit
485048abf1
177
actor/src/designer/rc_uds.py
Normal file
177
actor/src/designer/rc_uds.py
Normal file
@ -0,0 +1,177 @@
|
||||
# Resource object code (Python 3)
|
||||
# Created by: object code
|
||||
# Created by: The Resource Compiler for Qt version 6.3.1
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PySide6 import QtCore
|
||||
|
||||
qt_resource_data = b"\
|
||||
\x00\x00\x08|\
|
||||
\x89\
|
||||
PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\
|
||||
\x00\x000\x00\x00\x000\x08\x06\x00\x00\x00W\x02\xf9\x87\
|
||||
\x00\x00\x00\x09pHYs\x00\x00\x0b\x13\x00\x00\x0b\x13\
|
||||
\x01\x00\x9a\x9c\x18\x00\x00\x00\x07tIME\x07\xe2\x0a\
|
||||
\x04\x07'\x0am\xd5\xd2!\x00\x00\x08\x1bIDAT\
|
||||
h\xde\xed\x9am\x8cT\xd5\x19\xc7\x7f\xe7\xbe\xee.\xfb\
|
||||
\xbe:`-R\xd6b\xacR#h\xc7\x97\xb4F\x8c\
|
||||
\xca\x04l-\xadVM]Z\x9bZ\x8d\xfd`\xd2\x12\
|
||||
\x9b\x94V\xb4v\xc4\xa6h\xdah\xb5\x04b\x90\xd1\xb8\
|
||||
\xc1\x12\xab\x06\x98j3`A\x83S\x17P\x16\x10\xa5\
|
||||
\xb2\x14\xd4e\x16\x96egw\xe6\xce};\xfd\xb0\xb3\
|
||||
\xeb\xec\xee\xec\xb0\xb3w\xfa\xa1I\xff\xc9df\xce\xb9\
|
||||
\xf7\x9e\xe7\xbf\xcf\xcby\xce\x7f\x16\xfe\xc7!*\xfd\xc0\
|
||||
x2\xa4\x01\x9a\xa2\xa0\x9d\xdf\xaa)_h\xd2\x94#\
|
||||
\xdd\x8ex'\xe9\xf0\xc1\x87\x0e\xdd=>]G\x1c_\
|
||||
\x0c\xad\xec\x00\xd9D\xbb%\xff\xeb\x04\xe2\xc9\x90\x02\xa8\
|
||||
\x80\x96\x7f?\x07X\x04,\x00\xae\x04\xa6\x0f_\xeby\
|
||||
\xe08\x92]{l\xf6v:\x9c\xea\xf3\xc9\x1b<\xf2\
|
||||
^\x04'\x808\x10\x03v\x00\x1e`\x9f\x89\x9c\x98\x84\
|
||||
\xe1\x17\x00\xeb\x81V\xa0.O@+v\xad\x94\xb0z\
|
||||
m\x9a\xf4\x80DJ\x80\xe1\xb5%\x82\xcf\xed\x90\x881\
|
||||
K\x175\xc3\x06\xfa\x81\x87\x13\xed\xd6Se\x11\x88'\
|
||||
Cs\x815\xc0E@\xfdd<48(\xf9\xd3\xea\
|
||||
4\x00\x86\xb48j\xdcC\xbf:\x1fW4\xe2c\x22\
|
||||
E\x01g\xcf\xc6l\xa8G\xafVQ\xdc^\x0c\xb7\x9b\
|
||||
\xba\x81\xd7i\xe8\x7f\x05\x09x\xaa9\xd6\xb4\xd3\xc0\xef\
|
||||
\x12\xed\xd6\xca3\x12\x88'Ck\x80\x1f\x97\x1b\x8b\x07\
|
||||
>pxm\xd3 \xbd\xfa\xcdt\x99\x0f Q\x11\xb8\
|
||||
\x05^\x18\x0e!\x81~\xf6,\x14s\x1ay7!Q\
|
||||
\x90\x8a\x81\x14\x1a\xd5\xd6\x01j2oQ;\x98\xa0\xb9\
|
||||
\xefE\xdc\xd1d\xfe\x96h\xb7\x22\x13\x12\x88'C\xcf\
|
||||
\x02wM%\x99\x8e\xa7<\x9eYW\xc5\xfe\x86-(\
|
||||
d\x8b\xbb[\xd30g\xcc\x99TjJa \xa4\xc7\
|
||||
y\x9f\xdcI]\xfa\x15\xa4\xd0\x87'\xb7'\xda\xadk\
|
||||
\x86\xbf\xa8\xc3\x1f6n;\xcb0t\xf1b\xe1X9\
|
||||
hnR9\xd1\xdf\xc4\xbeS\xdfB\x88\xf1y'\x84\
|
||||
\x82y\xee\x85\xe3<21\x05\x0f\xf0\xe9k\xb8\x15D\
|
||||
\x15\xb5\x99\x04\xa0\x00\xcc\x9a=W{\xfep\xa7{\x8a\
|
||||
\xe1\x11\x80\xf5/\x9fR\xb3\x96\xafL\xb5\x9c\xd9\xb6\xe4\
|
||||
\x96\x85)f6\x1d-:o\x9c{\x01H\xbf\xfc2\
|
||||
)\x1dRg\xfd\x9c\xbe\x86\xa5\x85\xc3\xef\x0f\x7f\x181\
|
||||
\xb8\xbeV\x91\x1b\xe3\xa7\xa5\xe7M\xb9$\xe3I\x85U\
|
||||
\xb7\xddK\x8dn\x15\xd6&\xb4\xdafD\x80-G\xc8\
|
||||
\x1c=-\xcbP\xbd\x91\xe7\xd6\x5cw{U\xf3(\x02\
|
||||
@N\x08x}\xc7\x00\x9a\x16d\x7f\x93\xac\xfe\xc1\x9d\
|
||||
\x05a$\xd0\x1a\xa7\x07\xdeo-\xf3+\xf8\x8a9*\
|
||||
jG\x11\x88E\x1d\x09,<y\xcaeWg\x06=\
|
||||
\x00\x09]\xcd\xb1r\xc92l\xd7D(\x0a(\x0a\xc1\
|
||||
\xe1c\x9b_.\x1c0\xc7z\x80X\xd4\xd9*\x04\xbb\
|
||||
::\xb3||\xd4\x0e\xb4\xdc\xec\xd0A\xee\xbf~\x15\
|
||||
\x96c\x80/\xa9\x04\x14?3~l\xec@,\xea\x5c\
|
||||
f\xe8\x22\xb7ug\x1a\xcf\x0b\x10HRp\xc3\xc5\xaf\
|
||||
q\xfb\xfc\x17\xf0\x5c\xb7\x12\xe6Se\x1d.\x1c\xc8\x16\
|
||||
%\x90\xc7RU\x11\xbc\xfcz\x1fj\x00\xef\xdb\xaeI\
|
||||
\xdb\xd7WsQU<\xb0\xf9\x86{ll\x01\xee\x9f\
|
||||
\x90@,\xeal\x00~\x9f\xb3%\x7f\xd9\xd2\x17ha\
|
||||
\xdb5\xf9\xe5\xc2\xfbi\xa9>\x1e\xa80\xe8\xf6\x11\x0a\
|
||||
\x8a\xbc_\x92@\x9e\xc4\x03\xc0\xa7\x19K\xf2\xee\xdel\
|
||||
\xa0<\x94\xc0\x13\xd7]M\xad\xde?u\x0f\xd8\x87\x0a\
|
||||
\xabPo\xa2\xdd\xb2K\x12\xc8\xe3r\x80\x03\x87,>\
|
||||
=\xee\xa0\x88 $\x04O/\xbc\x94F\xf3d\xbe\x1b\
|
||||
-\xe7^\x0d\xd3>T\xd8\xf9\xfcq\xc2$\x1e\xe3\x85\
|
||||
\xcf\x80\x9b\x14\x056oK\xd3?\xe0\x05+\x84R\xe5\
|
||||
\xa9\x1b/\xa3\xb5~?\xae\xaf;\x93\xdf\x064L\xfb\
|
||||
\xa3\xc2\x91\xc9\x11\xc8\x93\xd8Tm\xeaGLC\xb0\xf9\
|
||||
\xcd4\xaaJ\xa0Xv}\x8d\xe8\xb5\xd7\xf3\xdc\xa2\xd6\
|
||||
'\xbb\x0f\xd6M\xcb\x9f3n\x036\x03]E\xef\x12\
|
||||
*\xc6\xe7\x04\x9c\xfc\xab\xf4\x81f\xdf\x91\xc5\x0a0\x0f\
|
||||
x\xd10\xb49\xab\xd6\xfe\x9d\x8ce\x13j\xd1Xx\
|
||||
M\x1d\xbeO%\xf0x$\x9cZ6vp\xc6\x8a\xfe\
|
||||
[\x80G\x819\x00\xbeR\xcb\xdc\x03\xf5\x80\x0b0\x00\
|
||||
4$\xda-\x7fB\x02\xfb\x8e,^\x01\xfc\xaa\xf0\xe4\
|
||||
e\xdbi\x1e[\xf36\xba&h\x9dip\xf5e\xd3\
|
||||
*u\x8c\xfeu$\x9c\xfam\xb1\x89\x19+\xfa\xeb\x80\
|
||||
\xcf\x84\x94\xd3\xbe\xba\xbf\x01W\xab\x02\xd8\x9dh\xb7\xe6\
|
||||
O\x18B?|\xd0L\xbe\xd5\xf1\xf1C\x9a\xaah\x02\
|
||||
\x1f\x01l\xda{\x1f\x8f\xbe\x91@4\xafD\x08\x87\x8f\
|
||||
\x8f\xda\x9c\xec\xf3*E\xe0\x91x2tG\xb1\x89\xee\
|
||||
\x87\xeb\xd3\x9a{\xac\xb96\xb3\xd5-(\xa1\xb1\x92'\
|
||||
\xb2\xb6\xe5\xfa3\x9e\xe7\xdf[S\x05\xad\x97n\xa0\xe3\
|
||||
\xd8w\xf0%(\x02\xa4\x80\xaa\x93\xb7\xa2\xe6^EJ\
|
||||
\xc9\x1d\xdflDU+&l\xcc\x8f\x84S\xbb\x8bM\
|
||||
\x5cu\xd77\xb6Tg\xdf\x89\x80B\xa2\xdd\x12%[\
|
||||
\x09`\xad\xaa*\xe4l\x8f\xdd]\xf3\x86.\x1aV\x14\
|
||||
$\xe4\x9a\xd6\x01C*\xc3\xc6\xf8\xe9J*2\xbb\xe2\
|
||||
\xc9\xd0\xf4x24\xee/R\x9dM\xdayS\x8fM\
|
||||
\xa6\x17\xea\x18\x99t\xde*R\xd2\xa6\x91\x0du\x81t\
|
||||
p\x5c\xc9;{2\x01+\xd3(\xec\x8d\x84S\xb2h\
|
||||
\x1d\x854\xb0}R\xaaD\xdbr\xfd=\xf0/\xf1\xaa\
|
||||
\x96\x90kz\xa9\xa8\x96\xa1\xa7\x9f@O\xff\x02_\x0a\
|
||||
\xae\x9aW\xc3\x9cY&\x95\xe99\xd9\x10\x09\xa7n\x9b\
|
||||
|\x8bW\x1c;AAx]\x13\xf6\x06N\xed\xcf\x90\
|
||||
\xeal\x14!\xf9Gr\x90\x8c\xe5W\xca\x0b\xdf\x8b'\
|
||||
C7\x04%\xf0\x18\x80\xe2\x1e*)}e\xa7\x7f\x08\
|
||||
\xa2\x1e\xd3\x10l\xde\xd6\x1f\xe8\x104\x06\x7f\x0eD \
|
||||
\x16u\x0e\x03[\xf1\xfb\xd0\x06\xd7\x95\xec\xd2\xac\x967\
|
||||
\x11\xd2!kI6o\xeb\xaf\xcc\xe1\x0bZ\xe3\xc9\xd0\
|
||||
EA<\x00\xf0\x07\x84\x8eq\xfa\xbe\xbcL9A\x7f\
|
||||
\xa3\xcf\xc5\xae{\x08!\x1c\x8e\x9fp\xf9\xa8\xcb\xae\x94\
|
||||
\x17\xa2\x81\x08\xc4\xa2\xce\xab@\x0f8\xa8\xb9\x1d\xa5{\
|
||||
\xfe\x86\x15\xf8\xfa\xd7\x10\x02\xde\xee\x18\xc0\xb6+\x92\xce\
|
||||
\x97\x07\xf5\x00\xc0\xb5 0O\x5c\x8b\x90\x13\xf7\xf2\xc2\
|
||||
\x87\x5c\xcb\x1b \x1d\x14E\xf0\xd2\x96\xbeR*\xf4d\
|
||||
Q_lO(\x8b@,\xea\xec\x07\xb6\xa2\xe8\x18}\
|
||||
?-\x99\xd0R4\x90\x0du\x0e7\x5cttf\x83\
|
||||
\xe6\xc3\xbf\x8a\xef\x09\xe5y\x00\xe0F\xc0W\xb3\xcf\xa3\
|
||||
e^(\xdd,k\x17\xe3\xd6>\x0aH:\x0ff\xe9\
|
||||
N\x05:\xcc?=9\xc5h\x12h[\xae_\x02\xbc\
|
||||
\x07\x0eV\xcbN|#<\xe1\xadR@\xcd\xf1\xf3\x11\
|
||||
\xde\xbfQU\x85;\xbf\xdd\x84\xeb\x96\x9d\x13'#\xe1\
|
||||
\xd4Y\x95\xc8\x81\xe1Pz\x1f\xf8\x0d\x18T\xf5F\x10\
|
||||
\xdeg%d@\xb0\xce\xfe\x100p]I\xe2\xed\xf4\
|
||||
TB)\xf0FV\x8c\xc4\x0a\x90\x1b\x90\x19\xaa{.\
|
||||
D\xc8t\x89|P\xc95\xc5\x108t}\xe2\xd0{\
|
||||
\xba\xac\xd6{)\xb0g\xf2\xa2c\x99h[\xae\xef\x04\
|
||||
\xae@\xbad\xcf\xe9G\x8a\xda\x09\xaf5{\xbf\x8b\x9a\
|
||||
{\x0d]\x17\xdcqS#\xde\x99\xbb\x8dE\x91pj\
|
||||
KyrW\x99\x88E\x9d+\x81\x83\x08\x8d\xea\xeeF\
|
||||
\x84\xdf=\xe1\xb5N\xc3\xe3 \x1dl[r\xf8\xccR\
|
||||
\xe5\xc5\xe5\x1a?%\x02y\x12\x17\x0e\x1d\xc2\x15\xaa\x8f\
|
||||
\xb7\xa2Y\x7f-\xeaKO\xff\x12\xd2\x18\xda\xe0\xb6\xbf\
|
||||
;X\xca\xdd3#\xe1\xd4\xfe\xa9\x09\x8eSD,\xea\
|
||||
,\x06\x1e\x01\x17\xa3w\x09F\xdf\xdd\xe3\x9e&|p\
|
||||
\xcd\xdbG\xbe\x0fd\xc6\xc5\xd0\x1e\xa06\x12N\x1d\x9b\
|
||||
\xbab\x1a\x00\xb1\xa8\xf3 \xf0\x13\x84\xeeh\x99g\xa9\
|
||||
\xf9\xa4\x0e\xd5\xda4\xe2\x0d\xa9\x80\xe2l\xfd\x5c\xcc\x1c\
|
||||
\xad+\xad\x8b\x84S\xf3\x22\xe1\xd4`\x10\x1b*\xd2\xff\
|
||||
\xb6-\xd7g\x00\xff\x04\xbe8$\xd9\xd4\x90k\x8c\xa1\
|
||||
Y\xaf\xa2Z\xcf\x01C?\xd0-^POc\xbdj\
|
||||
\x03wG\xc2\xa9\xf5\x95X\xbb\xa2\xffj\xd0\xb6\x5c_\
|
||||
\x0a\xac\x1d\xb1x\xccB\xdf\xbf\xb9\xd9\xf1\xa4\xdf\xb8\xe8\
|
||||
\x8a\x9eL\xa5\xd6T*I \x16u\xd63\xf4k\xfe\
|
||||
\x8fF\x19/`\xf1\x82\xfae\xaaFu%\x8d\xaf\xb8\
|
||||
\x07\xc6xC\x07\xce\x93\x12\xf3\xfcYF\xcf\xc3\xf7\x0c\
|
||||
\xf6\xf0\x7f\x8c\xc7\x7f\x00\xf4\xc5\x17\xbc:\x13\xef\x97\x00\
|
||||
\x00\x00\x00IEND\xaeB`\x82\
|
||||
"
|
||||
|
||||
qt_resource_name = b"\
|
||||
\x00\x03\
|
||||
\x00\x00p7\
|
||||
\x00i\
|
||||
\x00m\x00g\
|
||||
\x00\x0c\
|
||||
\x09W\x90\xa7\
|
||||
\x00u\
|
||||
\x00d\x00s\x00-\x00i\x00c\x00o\x00n\x00.\x00p\x00n\x00g\
|
||||
"
|
||||
|
||||
qt_resource_struct = b"\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
|
||||
\x00\x00\x00\x00\x00\x00\x00\x00\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
|
||||
\x00\x00\x00\x00\x00\x00\x00\x00\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x03\
|
||||
\x00\x00\x00\x00\x00\x00\x00\x00\
|
||||
\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
|
||||
\x00\x00\x01{\xed\xdf\x88\xcf\
|
||||
"
|
||||
|
||||
def qInitResources():
|
||||
QtCore.qRegisterResourceData(0x03, qt_resource_struct, qt_resource_name, qt_resource_data)
|
||||
|
||||
def qCleanupResources():
|
||||
QtCore.qUnregisterResourceData(0x03, qt_resource_struct, qt_resource_name, qt_resource_data)
|
||||
|
||||
qInitResources()
|
2471
client-py3/full/src/rc_UDSResources.py
Normal file
2471
client-py3/full/src/rc_UDSResources.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -177,7 +177,7 @@ class MFA(Module):
|
||||
Internal method to put the data into storage
|
||||
"""
|
||||
storageKey = request.ip + userId
|
||||
self.storage.putPickle(storageKey, (getSqlDatetime(), code))
|
||||
self.storage.putPickle(storageKey, (models.getSqlDatetime(), code))
|
||||
|
||||
def process(
|
||||
self,
|
||||
@ -214,7 +214,7 @@ class MFA(Module):
|
||||
try:
|
||||
if data and validity:
|
||||
# if we have a stored code, check if it's still valid
|
||||
if data[0] + datetime.timedelta(seconds=validity) > getSqlDatetime():
|
||||
if data[0] + datetime.timedelta(seconds=validity) > models.getSqlDatetime():
|
||||
# if it's still valid, just return without sending a new one
|
||||
return MFA.RESULT.OK
|
||||
except Exception:
|
||||
@ -264,7 +264,7 @@ class MFA(Module):
|
||||
if (
|
||||
validity > 0
|
||||
and data[0] + datetime.timedelta(seconds=validity)
|
||||
< getSqlDatetime()
|
||||
< models.getSqlDatetime()
|
||||
):
|
||||
# if it is no more valid, raise an error
|
||||
# Remove stored code and raise error
|
||||
|
@ -31,7 +31,6 @@
|
||||
|
||||
from email.mime.text import MIMEText
|
||||
from email.mime.multipart import MIMEMultipart
|
||||
from re import T
|
||||
import smtplib
|
||||
import ssl
|
||||
import typing
|
||||
|
@ -27,6 +27,7 @@
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
"""
|
||||
@author: Daniel Torregrosa
|
||||
@author: Adolfo Gómez, dkmaster at dkmon dot com
|
||||
"""
|
||||
|
||||
import typing
|
||||
|
@ -122,7 +122,7 @@ class TOTP_MFA(mfas.MFA):
|
||||
"""
|
||||
|
||||
return not any(
|
||||
i.ipInNetwork(request.ip)
|
||||
request.ip in i
|
||||
for i in models.Network.objects.filter(uuid__in=self.networks.value)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user