瀏覽代碼

adding missing getCSRF.py

NIX User 4 年之前
父節點
當前提交
e892554ee8
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      getCSRF.py

+ 12 - 0
getCSRF.py

@@ -0,0 +1,12 @@
+import labkeyInterface
+import io
+import os
+
+net=labkeyInterface.labkeyInterface()
+fhome=os.path.expanduser('~')
+net.init(fhome+'/.labkey/network.json')
+
+csrf=net.getCSRF()
+print("CSRF={}".format(csrf))
+
+quit()