Jump to content

twitchyliquid64

Active Members
  • Posts

    519
  • Joined

  • Last visited

  • Days Won

    3

twitchyliquid64 last won the day on November 24 2012

twitchyliquid64 had the most liked content!

Profile Information

  • Member Title
    Peace. Always.

Recent Profile Visitors

642 profile views

twitchyliquid64's Achievements

Universalist

Universalist (7/7)

23

Reputation

  1. Think I found it unless I am mistaken? https://msdn.microsoft.com/en-us/library/bb176688(v=office.12).aspx
  2. Whoa totally missed that! Thanks! Any idea where I can get a list of the other properties of the oOL_Item object? (ie: $oOL_Item.SenderName, couldnt find a list in the URL linked in the example code), or even better, is there a way to print it out in autoit (like python's dir function)?
  3. Hi water, I'm trying to fire a Autoit function (to trigger further automation) when I recieve an email, but cannot find a function for it. Is this supported in the UDF? Thanks, -twitchy
  4. Can you elaborate on what the $pb variable is? Im not sure if you are doing this, but if you only only update the progress in the GUI every now and then rather then every iteration or every 10 iterations you will also find it alot faster. I tend to use AdLibRegister functions to update GUIs. For the most part, your algorithm seems to have time complexity: O(n) where n is the number of elements in the CSV. With that in mind, program performance should be reliably linear, so massive fluctuations are pretty analogous. Are you feeding differently sized CSVs? are you sure your machine is not doing other stuff in the background?
  5. I made this a few years ago but no one used it. i can add new features as required. i also have a fetching API. autoit-repository.appspot.com/
  6. I realised how much of a retard I was as soon as you said it. AutoIt uses STDCALL by default doesnt it? Thanks trancexx and Shaggi for your help! For completeness, here is the final solution: To pointer* pass you setup a struct and pass the pointer to the struct. ; int BN_dec2bn(BIGNUM **a, const char *str); Func BigNum_Assign($BNNum, $sNum) $struct = DllStructCreate("ptr num;") DllStructSetData($struct, "num", $BNNum) ;Passing the pointer from this didnt work either. $retval = DllCall($_BigNum_DLL, "int:cdecl", "BN_dec2bn", "ptr", DllStructGetPtr($struct), "str", $sNum) ConsoleWrite("RETVAL: " & $retval[0] & @CRLF) EndFunc
  7. Thankyou Shaggi! I made the changes you recommended, however I am still getting hard crashes. <snip> Func BigNum_New() $val = DllCall($_BigNum_DLL, "ptr", "BN_new") return $val[0] EndFunc ; int BN_dec2bn(BIGNUM **a, const char *str); Func BigNum_Assign($BNNum, $sNum) $struct = DllStructCreate("ptr num;") DllStructSetData($struct, "num", $BNNum) ;Passing the pointer from this didnt work either. $retval = DllCall($_BigNum_DLL, "int", "BN_dec2bn", "ptr*", DllStructGetPtr($struct), "str", $sNum) ConsoleWrite("RETVAL: " & $retval[0] & @CRLF) EndFunc $test = BigNum_New() BigNum_Assign($test, "1000") 1. Using DllStructGetPtr($struct, 1) instead of DllStructGetPtr($struct) makes no difference 2. Using "ptr" instead of "ptr*" makes no difference.
  8. Hi all, I have a DLL Function which requires the type BIGNUM**. I have tried multiple ways, but I just cant get it to work. Currently I am: 1. Making a DLLCall() to get a pointer to a new BigNum Structure. 2. Making another DLL call to assign a number to that structure <--- AutoIt hard crash at this point. So does anyone know how to pass a pointer to a pointer via DLLCall? This is what I have so far (dw, only 33 lines) $_BigNum_DLL = DllOpen("libeay32.dll") ; BIGNUM *BN_new(void); Func BigNum_New() $val = DllCall($_BigNum_DLL, "ptr", "BN_new") return SetError( @error, @extended, $val) EndFunc ; int BN_dec2bn(BIGNUM **a, const char *str); Func BigNum_Assign($BNNum, $sNum) ;$struct = DllStructCreate("ptr num;") ;DllStructSetData($struct, "num", $BNNum) ;Passing the pointer from this didnt work either. $retval = DllCall($_BigNum_DLL, "int", "BN_dec2bn", "ptr*", $BNNum, "str", $sNum) ConsoleWrite("RETVAL: " & $retval & @CRLF) EndFunc $test = BigNum_New() BigNum_Assign($test, "1000") Thanks in advance for all the help you can give me. Having not used DLLCall much, I am stumped.
  9. brewman, 3.2.6.0 introduced tokenisation into the compilation process. i know people have said its bytecode but its not, there is a very clear difference. the difference is wether you do parsing at compile or runtime. sorry for being pedantic.
  10. to do SSL this is what you first must do. build a bignum library for handling integers. you will need it. implement the RSA algorithm. this is a bitch. write out the SSL algorithm. even more than a bitch. for starters. should take you a few months. good luck!
  11. what's the permissions/account the script is running under?
  12. BrewManNH, autoit does not use bytecode. it simply stores the tokenised script in the EXE, with the parsing done it runtime. the only exception is wierd things like fileinstall(), i have no idea how they work. fyi: bytecode - a series of stateless instructions for a virtual machine. sometimes given structures or headers. the key feature is that no parsing is required for execution. tokens - a linear array of critical elements of the script. a lot of work is still required at runtime for execution.
  13. hi, is it possible to wait 4 days? i will be able to get this working for you after then. sorry.
  14. How does the end-user application know if it's a valid key or not? What's to stop an attack from attacking the elements of the key that are checked (and based on obvious information)? What hash function are you using? Some are really easy to break
×
×
  • Create New...