Git Product home page Git Product logo

rau_crypto's People

Contributors

antonytm avatar bandrel avatar bao7uo avatar noperator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rau_crypto's Issues

Mixed DLL

Hey Paul,

do you have the DLL you would suggest to use to get a shell at all?

cipher.encrypt(plaintext) bring to TypeError

Hi,

Issue: cipher.encrypt need bytes and not string.

The return line on encrypt function bring to:

Traceback (most recent call last):
  File "RAU_crypto.py", line 327, in <module>
    mode_Post()
  File "RAU_crypto.py", line 285, in mode_Post
    print(upload(TempTargetFolder, Version, payload_filename, url))
  File "RAU_crypto.py", line 201, in upload
    payload_filename
  File "RAU_crypto.py", line 163, in payload
    data += rauPostData_prep(quiet, TempTargetFolder, Version) + "\r\n"
  File "RAU_crypto.py", line 111, in rauPostData_prep
    RAUCipher.encrypt(TempTargetFolder),
  File "RAU_crypto.py", line 76, in encrypt
    return base64.b64encode(cipher.encrypt(plaintext)).decode()
  File "C:\Python36\lib\site-packages\Crypto\Cipher\_mode_cbc.py", line 162, in
encrypt
    c_uint8_ptr(plaintext),
  File "C:\Python36\lib\site-packages\Crypto\Util\_raw_api.py", line 196, in c_u
int8_ptr
    raise TypeError("Object type %s cannot be passed to C code" % type(data))
TypeError: Object type <class 'str'> cannot be passed to C code

Anyway I solved such issue changing from:
return base64.b64encode(cipher.encrypt(plaintext)).decode()
To:
return base64.b64encode(cipher.encrypt(plaintext.encode('utf-8'))).decode()

Thanks

unbound method addHmac() error

Q1:How to mapping Telerik.Web.UI.WebResource version in this http response

Version=4.0.0.0, CultureTelerik.Web.UI.WebResource.axd?TSM_HiddenField=ContentPlaceHolder_FormTop_RadScriptManager1_TSM&compress=1&TSM_CombinedScripts=;;System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35:zh-TW:8f95decb-d716-4257-bc42-c772df7173e5:ea597d4b:b25378d2;Telerik.Web.UI:zh-TW:df833b2e-28ee-45e7-8320-6f2a9cb883d7:16e4e7cd:f7645509:22a6274a:24ee1bba:6a6d718d

Q2
How to fix unbound method addHmac() must be called with RAUCipher instance as first argument (got str instance instead)

log:
python 43874.py -P c:\inetpub\wwwroot 2017.2.503 43609.py https://target/Telerik.Web.UI.WebResource.axd?type=rau

file: 43609.py
version:2017.2.503
destination c:\inetpub\wwwroot
Preparing payload...
Traceback (most recent call last):
File "43874.py", line 322, in
mode_Post()
File "43874.py", line 280, in mode_Post
print(upload(TempTargetFolder, Version, payload_filename, url))
File "43874.py", line 196, in upload
payload_filename
File "43874.py", line 158, in payload
data += rauPostData_prep(quiet, TempTargetFolder, Version) + "\r\n"
File "43874.py", line 103, in rauPostData_prep
Version
TypeError: unbound method addHmac() must be called with RAUCipher instance as first argument (got str instance instead)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.