Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   Q: Good Developer-based calculator? (https://forum.exetools.com/showthread.php?t=18683)

Stingered 03-01-2018 10:45

Q: Good Developer-based calculator?
 
What do you use/recommend?

-THX

Fyyre 03-01-2018 11:21

Quote:

Originally Posted by Stingered (Post 112465)
What do you use/recommend?

-THX

calc.exe, in Windows.

RiRye 03-01-2018 12:16

Quote:

Originally Posted by Fyyre (Post 112468)
calc.exe, in Windows.

paired with CyberChef:

hxxps://gchq.github.io/CyberChef/

Stingered 03-01-2018 12:31

Quote:

Originally Posted by Fyyre (Post 112468)
calc.exe, in Windows.

I'll be damn, it has a programmer option (I'm embarrassed to say).

:o

chessgod101 03-01-2018 12:52

The hackman calculator from the hackman suite along side of console calculator are my favorites. One core feature I found lacking in windows calculator is the ability to convert hex to an unsigned value. I also use hpmbcalc which is now abandonware.

Code:

https://i.imgur.com/FIrhrtM.png

bilbo 03-01-2018 23:22

If you're not faint of heart, if you have Windows10, and if you want to spend half an hour of genuine amusement, I would suggest you to try CALC, not CALC for Windows, but the one for Linux! It's a command-prompt C-style calculator, with arbitrary precision, open-source, scriptable, and with a lot of functions built-in.

These are the steps to follow:

(1) Install the Linux SubSystem. Yes! Not a Virtual Machine! Look here

(2) Install the Ubuntu command-prompt from the Microsoft App Store (here)

(3) update the packages list: "apt-get update"

(4) install "links2", a command prompt oriented browser: "apt install links2"

(5) download the calc RPM: "links2 http://www.isthe.com/chongo/src/calc/calc-2.12.6.6-12.x86_64.rpm"

(6) install "alien", the new RPM manager: "apt install alien"

(7) install CALC and related libraries: "alien -i calc-2.12.6.6-12.x86_64.rpm"

(8) extend the path where the shared libraries are looked for:
Code:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64
export LD_LIBRARY_PATH
ldconfig

(9) You can finally execute CALC

At the end of all this, you will not only have CALC, but a full working Linux subsystem. You can also install the compiler, if you want... "apt install gcc"

Best regards
bilbo

atom0s 03-02-2018 02:17

If you want to use Windows 8.1's calculator on Windows 10, here is everything needed to make it run:
Code:

https://mega.nz/#!1t51zaZJ!E3d5e00W6Igrt6S-S1rf9TJQkUSbDqrXh2aTd46MXRI

yologuy 03-02-2018 07:22

https://www.sweetscape.com/010editor/manual/Calculator.htm

010 editor is very powerfull, and usefull, A must have when you try to understand some unknow data structure.

chants 03-02-2018 07:26

I suppose a seasoned developer can at least do hex addition and subtraction in the head:
It is obviously for example to see that DEAD+F00D=1CEBA. :D

As for multiplication, there is always Karatsuba's method.

In all seriousness though if doing a lot of debugging, the mental palette can sure speed things along if you can handle some simple hex computations and with enough experience most people gain some familiarity there.

Stingered 03-02-2018 08:57

Quote:

Originally Posted by chants (Post 112484)
I suppose a seasoned developer can at least do hex addition and subtraction in the head:
It is obviously for example to see that DEAD+F00D=1CEBA. :D

As for multiplication, there is always Karatsuba's method.

In all seriousness though if doing a lot of debugging, the mental palette can sure speed things along if you can handle some simple hex computations and with enough experience most people gain some familiarity there.

My norm is this site: https://www.paulschou.com/tools/xlate/

But I'm looking for something to use in a closed ENV.

bongos_man 03-03-2018 00:34

@chessgod101 (and anyone else), if you like console calculator, you might like speedcrunch--basically the same, but open source

ontryit 03-03-2018 14:09

Quote:

Originally Posted by bilbo (Post 112479)
If you're not faint of heart, if you have Windows10, and if you want to spend half an hour of genuine amusement, I would suggest you to try CALC, not CALC for Windows, but the one for Linux! It's a command-prompt C-style calculator, with arbitrary precision, open-source, scriptable, and with a lot of functions built-in.

These are the steps to follow:

(1) Install the Linux SubSystem. Yes! Not a Virtual Machine! Look here

(2) Install the Ubuntu command-prompt from the Microsoft App Store (here)

(3) update the packages list: "apt-get update"

(4) install "links2", a command prompt oriented browser: "apt install links2"

(5) download the calc RPM: "links2 http://www.isthe.com/chongo/src/calc/calc-2.12.6.6-12.x86_64.rpm"

(6) install "alien", the new RPM manager: "apt install alien"

(7) install CALC and related libraries: "alien -i calc-2.12.6.6-12.x86_64.rpm"

(8) extend the path where the shared libraries are looked for:
Code:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64
export LD_LIBRARY_PATH
ldconfig

(9) You can finally execute CALC

At the end of all this, you will not only have CALC, but a full working Linux subsystem. You can also install the compiler, if you want... "apt install gcc"

Best regards
bilbo

Wow, these was terrible way to only get CALC :D

niculaita 03-03-2018 16:02

use teamviewer to remote quick support on phone where you can install many apps
https://play.google.com/store/search?q=calculator&c=apps

Mynotos 03-04-2018 05:34

I use 010 Editor its very good for big files and many other things

dosprog 04-02-2018 17:35

1 Attachment(s)
Here is a little and very useful 32-bit calculator
32-bit ASM Calculator 1.6 (c)PCL

--Add--


And here is a specific calculator for calculate offsets in 32-bit PE-EXE file:
File Location Calculator (c)PCL

His little-modified version 1.4.0.4(+) is attached to this message (See attachement).
Added option - displays "<TaiL>" string after section name if (given address > FileOffset+VirtualSize) for this section.

Example of PE-sections table in 32-bit PE-EXE with tails in sections:

Quote:

N Name.... VirtSize...... RVA....... PhysSize.... Offset..... Flag
1 .text...... 00028874 00001000 00028A00 00000400 60500060
2 .data..... 00000084 0002A000 00000200 00028E00 C0300040
3 .rdata.... 00008970 0002B000 00008A00 00029000 40700040
4 .eh_fram 000065A8 00034000 00006600 00031A00 40300040
5 .bss...... 00010F20 0003B000 00000000 00000000 C0700080
6 .idata.... 00000A68 0004C000 00000C00 00038000 C0300040
7 .CRT...... 00000018 0004D000 00000200 00038C00 C0300040
8 .tls........ 00000020 0004E000 00000200 00038E00 C0300040
See ".text" section for example:
VirtSize =00028874h
PhisSize=00028A00h
Then:
<Tail>Size= PhisSize-VirtSize=018Ch


--Add--

For "Triming tails" of all sections in PE-section table of file
use HIEW32 HEM-Plugin PE_TAILS.HEM.




dosprog 04-02-2018 17:55

Quote:

Originally Posted by Fyyre (Post 112468)
calc.exe, in Windows.

CalcPlus v.1.0 (RUS) / 2004 is an extended (by Microsoft) version of this calculator. Added values conversion option. (Only russian version available..)


[little offtop]
Old Microsoft CALC.EXE from Win 3.11 contains an "easter egg" - calculate 3.11-3.1 and see result)).
(It's WIN16 NE-EXE, then doesn't works on 64-bit new OS's, only on 32-bit new Windows).
[/little offtop]



--Add--

RSC 1.3 / 1991 & RSC 3.0 / 1993 - it's the best DOS programmers/scientifics resident calculator. More powerful than standard CALC.EXE from Windows.

I'm using (more often) simple DOS resident HEX/DEC calculator CALC.COM (remaked 2005) . But it's for amateurs..


--Add2--

Quote:

Originally Posted by chessgod101 (Post 112475)
The hackman calculator [...]

Good functions, but It is sorry that on vbаsiс..
However thanks, - added into collection.



c0rin 04-13-2018 17:20

Quote:

Originally Posted by bongos_man (Post 112496)
@chessgod101 (and anyone else), if you like console calculator, you might like speedcrunch--basically the same, but open source

I also use speedcrunch. You can easily switch between using binary/decimal/hexadecimal for output (no restriction on input) and the best thing is it shows the result while you're still typing. It also has a bit level view which also updates on-the-fly.
screenshot

Stingered 04-15-2018 08:55

Quote:

Originally Posted by dosprog (Post 112874)
Here is a little and very useful 32-bit calculator
32-bit ASM Calculator 1.6 (c)PCL

--Add--


And here is a specific calculator for calculate offsets in 32-bit PE-EXE file:
File Location Calculator (c)PCL

His little-modified version 1.4.0.4(+) is attached to this message (See attachement).
Added option - displays "<TaiL>" string after section name if (given address > FileOffset+VirtualSize) for this section.

Example of PE-sections table in 32-bit PE-EXE with tails in sections:



See ".text" section for example:
VirtSize =00028874h
PhisSize=00028A00h
Then:
<Tail>Size= PhisSize-VirtSize=018Ch


--Add--

For "Triming tails" of all sections in PE-section table of file
use HIEW32 HEM-Plugin PE_TAILS.HEM.




Best response yet!

silver 04-23-2018 02:02

Strong recommendation: IPython

Just type iPython in your iTerm or WSL or Konsole and use hex(), lol

dosprog 04-23-2018 06:15

Sometimes can be useful AnalogX PCalc.

gillie92 05-02-2018 00:49

I would recommend SpeedCrunch. It got syntax just like coding, easy-to-use.

pp2 06-28-2018 16:05

I think, programmer, should write calculator himself :)
First of all, it is interesting and you can add features, required by your calculation style (e.g. reverse notation, if you love it), second, it is not a very difficult task.

p.s. surely, I wrote my favorite myself, here is list of features, maybe someone will find them useful to implement in their programs:
- almost any number lengths are supported, i.e. 128-bit numbers, 256-bit, etc.
- floating point numbers can be with different mantissa and exponent size, so one can just get 128-bit floating point compatible with IEEE-754, or play with 256-bit floats to see if they will help.
- all bit operations are supported, including popcount and cyclic shift even through carry bit (to emulate CPU instructions), but one can cyclic shift even 256-bit number too
- surely, hex, oct, bin radixes are supported, including limiting representation size, so one can always know how many bytes will be required to represent current number in memory (including floating point format)
- binary complement format is supported, one can change signed and unsigned representation on the fly, this is usefull to check, that e.g. -16=240 in byte types.
- full SNaN, QNaN, machine zero, epsilon, +Inf, -Inf and rounding schemes support for IEEE-754.
- some exotic functionality also presents: e.g. representing floating point number as a continuos fraction, checking for primeness, finding gcd/lcm, etc.

and so on... even if I missed smth required for my work, I just edit sources and add this functionality :)

p.p.s. not attached here, since calculator is a bit ugly and has no built-in help, and one should remember all its commands.

Kurapica 06-28-2018 16:20

When most calculators hit an overflow you can depend on this one

http://mrob.com/pub/comp/hypercalc/hypercalc-javascript.html

dosprog 07-03-2018 00:50

Old DOS resident HEX/DEC calculator, remake of CALC.COM (c)D.Gurtyak,1990:
CALC.COM v.0.000a, remake 2005

Old DOS resident scientific calculator with reverse notation and minimum of memory requirements:
SCALC.COM v.1.0(fixed) (c)Safonenkov,1992

Both written on ASM.


All times are GMT +8. The time now is 00:22.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX