May 10, 2021 17:38
Thanks. Is the "0+" really necessary? Can't hex numbers just be written in their normal form? I guess the "0+" means 10^0 which is 1, so the hex number is just multiplied by 1?
May 10, 2021 17:38
In my example, the hex number is part of the program code, but can hex numbers also be input? I read some documentation saying that only decimals are recognized in the input, while hex numbers are interpreted as strings. Can you confirm?
May 10, 2021 17:38
0+ means “zero plus”, i.e. add zero, and is the documented way to force AWK to treat a value as a number. - So, 0+ is only necessary in certain contexts? In your example, it's not needed, and AWK threats the value as a hex number?
 
Oct 7, 2017 12:10
To use stringutils, I must first deploy it onto the blockchain right? Its basic usage says using strings for *;. So, I don't inherit from stringutils?
Oct 7, 2017 12:10
Having looked at the stringutils library, I don't think its "split" functions seems more efficient than yours? They return one token at a time.
Oct 7, 2017 12:10
Hi again, it works now - it was due to an exceed gas limit exception it didn't work. Oraclize set a default gas limit of 200.000, but your function cost a little more to run ;)
Oct 7, 2017 12:10
Thank you very much.
Oct 7, 2017 12:10
Hi again, do you have any idea why your method isn't working from my code: pastebin.com/Lns49hLu ?
Oct 7, 2017 12:10
Can’t I just cast bytes to uint?
Oct 7, 2017 12:10
Yes, but you assume the bytes are hex repr. of ASCII numbers? Say bytes contains 0x00 0x00 0x00 0xFF, then I want to convert this sequence to 255.
Oct 7, 2017 12:10
Last question, can you convert a “bytes” to “uint”? If so, how? By “bytes” I mean an array.
Oct 7, 2017 12:10
Sure, please post it. :-)
Oct 7, 2017 12:10
Say, each number is 4 bytes(32 bit)
Oct 7, 2017 12:10
Do you think it would be more efficient to have the oracle service return the numbers as raw bytes? Then parseInt() would not be required (It is expensive, right?). Would the code look similar then?
Oct 7, 2017 12:10
Your code has some minor errors, like the temp.push().
Oct 7, 2017 12:10
Yes, Thank you! It is so nice, just what I needed.
Oct 7, 2017 12:10
Thanks! Do you know of this library is already deployed on Rinkeby testnet? Can you describe what your code does? Is 0x20 used as a separator? What if a real byte takes this value?
 

 The DMZ

A serious place where infosec is discussed PS we don't do hard...
Aug 6, 2014 13:02
Thank you I will look into it.
Aug 6, 2014 12:50
@RoryAlsop but you never do number theory in hand or something similar ?
Aug 6, 2014 12:49
@AviD - I guess you write some scripts and small programs which could be done from .NET ?
Aug 6, 2014 12:48
@Avid
Aug 6, 2014 12:48
Should a pentester have good math skills when it comes to cryptography ?
Aug 6, 2014 12:34
Another question: Is pentesting ever done using .NET on Windows ? I mean, like writing a program in C# etc.
Aug 6, 2014 12:26
Guess I should never had invested in a 1000$ PC with VT-X support disabled (and no option to enable in BIOS) then ... Thanks @RoryAlsop and @RoryMcCune for your guidance. You say you used to carry out ALL pen testing, this doesn't apply anymore ?
Aug 6, 2014 12:19
@RoryMcCune Ahh thanks. So is it possible to use one VM to "attack" another VM ?
Aug 6, 2014 12:15
May I ask what pentesters use Virtual Machines for in practice ?
 

 The Comms Room

ServerFault's lobby
Aug 6, 2014 12:12
May I ask what pentesters use Virtual Machines for in practice ?