--- Log opened Mon Aug 09 00:00:57 2021 |
01:22 | | ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code |
01:22 | | mode/#code [+ao ToxicFrog ToxicFrog] by ChanServ |
02:01 | | Degi [Degi@Nightstar-0cs6p7.pool.telefonica.de] has quit [Operation timed out] |
02:02 | | Degi [Degi@Nightstar-c5eqci.dyn.telefonica.de] has joined #code |
04:54 | < Yossarian> | https://github.com/Jubulani/carta |
04:54 | < Yossarian> | this seems pretty cool |
04:55 | < Yossarian> | wonder why they've only included one schema for it? |
04:58 | < Yossarian> | the web backend is weird |
05:01 | < Yossarian> | hex editor that can do what carta can as well as display data in histogram, cartesian graph, 2d graph |
05:01 | < Yossarian> | would be interesting |
05:03 | | Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has joined #code |
05:03 | | mode/#code [+qo Vorntastic Vorntastic] by ChanServ |
05:04 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed] |
05:05 | < Yossarian> | and from the process end, identify x86 instructions and such but looks like PINCE does that, I didn't get a chance to try it today |
05:38 | | catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
05:38 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection closed] |
07:00 | | catalyst_ is now known as catalyst |
09:52 | | catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
09:52 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection reset by peer] |
10:15 | | abudhabi_ [abudhabi@Nightstar-hfq9b7.adsl.tpnet.pl] has joined #code |
10:18 | | abudhabi [abudhabi@Nightstar-69k137.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds] |
11:38 | < Yossarian> | wait wait |
11:39 | | * catalyst_ waits |
11:42 | < Yossarian> | in unix like operating systems, you just define LD_PRELOAD to a shared library you've created and then |
11:46 | < Yossarian> | you can use functions from this library to fish for symbols, i see you can overload syscalls or have them execute normally but have a debug output when they get called |
11:47 | <&[R]> | That's a function of glibc, it's not portable |
11:47 | < Yossarian> | i mean you could do `ldd` on the executable to see what libraries are loaded and `nm` |
12:03 | < Yossarian> | and and |
12:03 | <&[R]> | or or |
12:04 | < Yossarian> | [R]: just like one can do analysis on various daemons and servers on certain ports, if the program is compiled with a specific compiler |
12:07 | < Yossarian> | and according to the ABI it might already have how the function name is mangled not to mention other symbols |
12:09 | < Yossarian> | http://www.kegel.com/mangle.html#operators |
12:18 | < Yossarian> | Am I right? |
12:28 | < Yossarian> | heh https://pbs.twimg.com/media/CPMUP9bUwAAcDr8?format=jpg&name=medium coordinate system by game engine |
12:29 | < Yossarian> | https://cdn.discordapp.com/attachments/502057640877228042/869229159623307264/EmVSW5AW8AAoDD9.png more engines and left/right handed explained |
12:31 | < Yossarian> | ironically unreal engine is the only one that seems to make sense to me but inverted isn't so bad, that y axis is up non-sense... eek |
13:28 | | catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds] |
13:59 | < Yossarian> | wait what? |
14:06 | | catalyst [catalyst@Nightstar-uch5c8.dab.02.net] has joined #code |
14:17 | | catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
14:18 | | catalyst [catalyst@Nightstar-uch5c8.dab.02.net] has quit [Ping timeout: 121 seconds] |
14:24 | < Yossarian> | Do arrays in C99 not indice or subscript at 0? it only seems to do so for `char` type. |
14:26 | < Yossarian> | this seems to be the case if you use the initalizer list |
14:29 | < Yossarian> | https://archive.org/details/TheCProgrammingLanguageFirstEdition/page/n69/mode/2up |
14:30 | <~Vorntastic> | Are you shitting me |
14:32 | <@celticminstrel> | What/ |
14:33 | <@celticminstrel> | Of course they start at 0. |
14:36 | < Yossarian> | oh or the other way to interpret it is int array[5] = { 0, 1, 2, 3, 4 } is that array[5] is not apart of membership |
14:36 | <@celticminstrel> | Yes, if you declare int array[5]; then array[5] is not a valid index. That’s equally true of char arrays too. |
14:44 | <&ToxicFrog> | Yeah, the [5] in that declaration is the array size (in number of elements), so given a declaration array[n] the range of valid indices is 0..(n-1) |
14:45 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code |
14:45 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
14:48 | < catalyst_> | (the reason is because of pointer math. 0-based is actually really unintuitive) |
14:51 | <@celticminstrel> | Yes indeed. |
14:53 | <&[R]> | https://termbin.com/vt3r https://termbin.com/3i9l |
14:54 | <&ToxicFrog> | I have found over the years that there are a lot of things for which 0-based makes the math around the array a lot easier, to the point that I generally prefer 0-indexed |
14:55 | <&[R]> | Aye |
14:55 | <&ToxicFrog> | (this post brought to you by Lua Crew) |
14:57 | <~Vornicus> | ^ |
14:57 | <~Vornicus> | (this agreement brought to you by someone with lua and glsl open in his text editor right now) |
15:27 | < Yossarian> | hmm |
15:31 | < Yossarian> | sizeof returns |
15:56 | <&[R]> | It's actually a macro, so it doesn't |
16:43 | | Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity] |
17:07 | < Yossarian> | returns bytes? |
17:07 | < Yossarian> | 🍙 |
17:11 | | Kizor is now known as KIZOR |
17:17 | | KIZOR is now known as Kizor |
17:18 | < Yossarian> | This is a retarded idea. https://en.wikipedia.org/wiki/Emoji_domain |
17:18 | | Kizor is now known as KIZOR |
17:18 | | KIZOR is now known as Kizor |
17:49 | <&[R]> | Nice way to make a domain inaccessible unless someone shares the link, but I guess most people don't actually type domains out anymore anyways |
18:15 | < catalyst_> | I imagine most people get to websites via Google |
18:15 | | catalyst_ is now known as catalyst |
18:20 | | catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
18:20 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection closed] |
18:20 | <&[R]> | Fair |
18:20 | <&[R]> | Given the "facebook login" event |
18:20 | | catalyst [catalyst@Nightstar-uch5c8.dab.02.net] has joined #code |
18:24 | | catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds] |
18:33 | | catalyst_ [catalyst@Nightstar-058ijn.cable.virginm.net] has joined #code |
18:34 | <@celticminstrel> | sizeof isn’t a macro. |
18:35 | | catalyst [catalyst@Nightstar-uch5c8.dab.02.net] has quit [Ping timeout: 121 seconds] |
18:36 | <&[R]> | Ah, I was told it was, oops |
18:36 | < Yossarian> | its an operator |
18:36 | < Yossarian> | or at least it was |
18:36 | <@celticminstrel> | They call it an operator but that’s also kinda a misnomer IMO. |
18:36 | <@celticminstrel> | Oh, I guess it can be used on an expression, so in that sense it qualifies. |
19:05 | | Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Ping timeout: 121 seconds] |
19:10 | < Yossarian> | my head hurts |
19:11 | < Yossarian> | insomnia - reading about a whole bunch of topics and writing some simple C just to see what the difference was between C99 and previous |
19:12 | < Yossarian> | some scary shit |
19:14 | < Yossarian> | buffer overflow in source engine for downloading maps, voice, etc, got access to a pointer on the client's machine via dumb assumptions about http-request |
19:16 | <&ToxicFrog> | I generally refer to sizeof as a "special form" for this reason~ |
19:17 | <&ToxicFrog> | Yossarian: modern C (and C++) are still very memory-unsafe languages and new exploitable bugs just like that one are still discovered on a daily basis |
19:28 | < Yossarian> | I know, it makes me afraid to write in them. |
19:30 | <&ToxicFrog> | Good. |
19:31 | < Yossarian> | Even though if I didn't waste a decade of my life I'd be way more proficient in them than I am now. |
19:42 | <&McMartin> | Belated: LD_PRELOAD is Linux-specific (it doesn't make any sense with the two-layer namespaces macOS and Windows use) and yes, it basically lets you shim system libraries however you want |
19:42 | <&McMartin> | macOS requires you to compile such dynamic libraries with a special "intercept" annotation, and the standard Windows technique for it is import-address-table hacking and is specific to the PE32 format |
20:47 | < Yossarian> | Regardless, I have to flush my brain's buffers. |
20:49 | | Kimo|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code |
20:49 | | mode/#code [+o Kimo|autojoin] by ChanServ |
20:51 | <&McMartin> | This is not to be confused with LD_LIBRARY_PATH, which lets you ship a self-contained binary that includes private .so files of its own. |
20:51 | <&McMartin> | LD_PRELOAD should be restricted to debugging or compatibility shims |
20:58 | | Kimo|autojoin is now known as Kindamoody |
20:59 | < Yossarian> | McMartin, ToxicFrog, [R]: I don't think I'm just afraid to write software/have writer's block, the situation I'm in is not very inspiring. |
21:00 | < Yossarian> | I think I have to KISS, I think I'm going to do that codec2 thing... I just need a library to record from soundcard line-in/mic-in. |
21:00 | < Yossarian> | Besides reading about various topics I was also reading a buncha source. |
21:01 | < Yossarian> | I'm not sure what library to use though, maybe SDL? |
21:01 | <&ToxicFrog> | Is there a particular reason you want to do this in C? |
21:01 | < Yossarian> | cross platform, will have the key handling events I need. |
21:02 | < Yossarian> | not in C per se |
21:03 | < Yossarian> | if there are lua bindings for SDL, codec2, and ncurses or libvte then I'm probably good. |
21:04 | <&ToxicFrog> | Not sure. I know love2d includes an audio recording API in `love.audio` but you'd likely to need to supply your own codec2 and curses/vte (or just sling control codes manually for the latter) |
21:05 | < Yossarian> | C and C++ are what I'm most familiar with and what I've been trained in, though. They don't scare me like they scare most people, but all the buffer overflows, be nice to avoid those... although sometimes the problem is with the functions in the basic libraries themselves. |
21:09 | | catalyst_ [catalyst@Nightstar-058ijn.cable.virginm.net] has quit [[NS] Quit: -a- Connection Timed Out] |
21:09 | | catalyst [catalyst@Nightstar-058ijn.cable.virginm.net] has joined #code |
21:12 | | catalyst_ [catalyst@Nightstar-1dili4.dab.02.net] has joined #code |
21:13 | | catalyst [catalyst@Nightstar-058ijn.cable.virginm.net] has quit [Ping timeout: 121 seconds] |
21:22 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
21:25 | | catalyst_ [catalyst@Nightstar-1dili4.dab.02.net] has quit [Ping timeout: 121 seconds] |
22:20 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code |
22:20 | | mode/#code [+o Reiv] by ChanServ |
22:25 | | Kindamoody is now known as Kindamoody[zZz] |
22:31 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] |
22:32 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code |
22:32 | | mode/#code [+o Reiv] by ChanServ |
22:46 | < Yossarian> | where does `file` store magic definitions? not in /usr/share/misc/magic for me, /etc/magic just has two comments in it |
22:47 | < Yossarian> | man lsof |
22:47 | < Yossarian> | errr |
22:49 | < Yossarian> | ptrace is more illuminating |
22:50 | | himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
22:53 | < Yossarian> | open("/usr/share/misc/magic.mgc", O_RDONLY) = 3 -- sure enough, along with other attempts at opening files where there could be definitions |
23:18 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] |
23:19 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code |
23:19 | | mode/#code [+o Reiv] by ChanServ |
23:59 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] |
--- Log closed Tue Aug 10 00:00:04 2021 |