--- Log opened Wed May 27 00:00:35 2015 |
00:06 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
00:29 | | Checkmate [Z@Nightstar-ev6.6um.94.83.IP] has quit [Ping timeout: 121 seconds] |
00:32 | | catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: ] |
00:32 | | catadroid [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code |
00:48 | | Derakon [chriswei@Nightstar-2fe4eq.ca.comcast.net] has quit [[NS] Quit: leaving] |
00:48 | | Derakon[AFK] is now known as Derakon |
01:53 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code |
01:53 | | mode/#code [+o Checkmate] by ChanServ |
02:21 | | Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has joined #code |
02:21 | | mode/#code [+o Vash] by ChanServ |
03:14 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
03:14 | | Meatyhandbag [sebastianfe@Nightstar-sin.6c6.73.97.IP] has quit [Client exited] |
03:17 | | Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has quit [Connection closed] |
03:38 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Connection closed] |
03:44 | | himi [fow035@Nightstar-dm0.2ni.203.150.IP] has joined #code |
03:44 | | mode/#code [+o himi] by ChanServ |
04:27 | | Vornicus [vorn@Nightstar-uhn82m.ct.comcast.net] has quit [[NS] Quit: ] |
04:39 | <&McMartin> | http://cybersquadblog.tumblr.com/post/119449026143/popular-ssh-client-putty-gets -new-version-that-steals |
04:46 | <@Reiv> | Well, that's unpleasant |
04:46 | <@Reiv> | I wonder how you'd rig an antivirus client to watch for such things |
04:46 | <@Reiv> | I guess you end up whitelisting repositories so you can check that a version matches a legit edition? |
04:47 | <&McMartin> | PuTTY's official webpage is incredibly dodgy as it is -_- |
04:47 | <&McMartin> | Also its implementation! |
04:49 | <&McMartin> | As for antivirus - real-time protection might notice it sending messages somewhere "dodgy", I guess? |
04:49 | <@celticminstrel> | The only PuTTY thing I use is its key format, because for whatever reason WinSCP doesn't support the normal OpenSSL format. |
04:52 | <@celticminstrel> | Though, if I were using ssh for remote control from Windows rather than just for file transfer, I'd probably use PuTTY... |
04:52 | <@celticminstrel> | I generally do that stuff from my Mac though. |
05:08 | | Derakon is now known as Derakon[AFK] |
05:43 | | celticminstrel [celticminst@Nightstar-50nn7i.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
06:10 | | rolly_ [rolly@Nightstar-eo05bk.co.comcast.net] has joined #code |
06:12 | | Kindamoody[zZz] is now known as Kindamoody |
07:27 | | rolly_ [rolly@Nightstar-eo05bk.co.comcast.net] has quit [Ping timeout: 121 seconds] |
07:49 | <@TheWatcher> | "The malicious copy is obtained following an online search for the program, which includes compromised websites in the results." |
07:49 | <@TheWatcher> | so, it's not on the PuTTY website |
07:50 | <@TheWatcher> | OTOH, it would help a lot if something so well known and widely used had a site with a) its own actual domain name, and b) design from the last decade. |
07:51 | < abudhabi> | Those things cost. |
07:54 | <@TheWatcher> | Uh |
07:54 | < abudhabi> | You can't say that they don't! :V |
07:55 | <@TheWatcher> | Yes, yes they do. A domain name costs less per year than I'll spend on the train ticket I'll buy to get me into Manchester just for today |
07:56 | <@TheWatcher> | Design? Well, if you want to employ a web designer to do it, sure, but there are options out there that don't need it |
07:56 | < abudhabi> | Wow, train tickets are expensive. |
07:56 | <@TheWatcher> | £7.80 return ;.; |
07:56 | <@TheWatcher> | Week ticket is nearly £30 |
07:57 | <@TheWatcher> | He's /already/ paying for hosting, which is by far and away the major recurring cost |
07:59 | | kourbou_ [kourbou@Nightstar-deqg8j.fbx.proxad.net] has joined #code |
07:59 | | kourbou_ is now known as kourbou |
07:59 | | macdjord|wurk is now known as macdjord|slep |
08:03 | | himi [fow035@Nightstar-dm0.2ni.203.150.IP] has quit [Connection closed] |
08:03 | | himi [fow035@Nightstar-dm0.2ni.203.150.IP] has joined #code |
08:03 | | mode/#code [+o himi] by ChanServ |
08:26 | | himi [fow035@Nightstar-dm0.2ni.203.150.IP] has quit [Ping timeout: 121 seconds] |
08:28 | | catadroid` [catalyst@Nightstar-ur1tkg.dab.02.net] has joined #code |
08:32 | | catadroid [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [Ping timeout: 121 seconds] |
08:32 | | rolly_ [rolly@Nightstar-eo05bk.co.comcast.net] has joined #code |
09:00 | | catadroid` is now known as catadroid |
09:20 | | Kindamoody is now known as Kindamoody|afk |
09:23 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code |
10:56 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
10:57 | | mode/#code [+o himi] by ChanServ |
11:04 | | kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has quit [[NS] Quit: Tip about keeping secrets: It's easier if you don't know them.] |
11:39 | | * gnolam headdesks repeatedly. |
11:42 | < abudhabi> | What did they do wrong now? |
11:51 | <@Tarinaky> | Guess: Attempt to fix a bootloader problem by reinstalling Windows on a system with disk encryption. |
11:51 | <@Tarinaky> | And they haven't been using the network drive to save their completely irreplaceable data. |
11:52 | <@Tarinaky> | And then they ask if you can save their porn off there: immediately triggering the HR-aggeddon. |
12:08 | | * catadroid is making the lights do things on the screen |
12:11 | < abudhabi> | We all do, catadroid. |
12:33 | < catadroid> | \o/ |
13:28 | | catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code |
14:01 | | gizmore [kvirc@Nightstar-4as9qd.dip0.t-ipconnect.de] has quit [Ping timeout: 121 seconds] |
14:01 | | gizmore [kvirc@Nightstar-er3pf6.dip0.t-ipconnect.de] has joined #code |
14:04 | | catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: ] |
14:59 | | catadroid` [catalyst@Nightstar-09ok2s.dab.02.net] has joined #code |
15:02 | | catadroid [catalyst@Nightstar-ur1tkg.dab.02.net] has quit [Ping timeout: 121 seconds] |
15:05 | | catadroid` is now known as catadroid |
15:11 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code |
15:11 | | mode/#code [+o Checkmate] by ChanServ |
16:17 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
16:25 | | kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has joined #code |
16:32 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
16:32 | | mode/#code [+o himi] by ChanServ |
16:35 | | celticminstrel [celticminst@Nightstar-50nn7i.dsl.bell.ca] has joined #code |
16:35 | | mode/#code [+o celticminstrel] by ChanServ |
17:26 | < ToxicFrog> | Hmm. |
17:26 | < ToxicFrog> | Say I have a binary. |
17:27 | < ToxicFrog> | I want to effectively replace one of the DSOs it loads with one of my own. |
17:27 | | Meatyhandbag [sebastianfe@Nightstar-sin.6c6.73.97.IP] has joined #code |
17:27 | < ToxicFrog> | Under normal circumstances I'd use LD_PRELOAD. In this case, however, the program is not directly linked against this library; rather, it uses dlopen() |
17:28 | < ToxicFrog> | If I LD_PRELOAD the library I want, will its functions properly override the ones in the dlopen()ed library? |
17:29 | < ToxicFrog> | I would guess no, because it's probably using dlsym() to get the symbols it wants. |
17:32 | < ToxicFrog> | But maybe I can instead use LD_LIBRARY_PATH to make sure dlopen() finds my copy of the library and not the system one, and then dlsym() will return the right things? |
17:33 | < ToxicFrog> | Also, McMartin, would writing a library that stubs out a bunch of C API calls be a good way to get feet-wet with Rust, or is having to mimic a C API going to make me and/or the type system unhappy? |
17:40 | | catadroid [catalyst@Nightstar-09ok2s.dab.02.net] has quit [A TLS packet with unexpected length was received.] |
17:40 | | catadroid` [catalyst@Nightstar-09ok2s.dab.02.net] has joined #code |
17:57 | | catadroid` is now known as catadroid |
17:58 | | kourbou is now known as kourbou|afk |
18:02 | | kourbou|afk is now known as kourbou |
18:12 | | kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has quit [[NS] Quit: Tip about keeping secrets: It's easier if you don't know them.] |
18:35 | | catadroid [catalyst@Nightstar-09ok2s.dab.02.net] has quit [[NS] Quit: Bye] |
18:36 | | catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code |
18:41 | <@Wizard> | https://plus.google.com/+gimp/posts/cxhB1PScFpe |
18:53 | <@gnolam> | Yeesh |
19:08 | | * Alek cringes. |
20:14 | <&McMartin> | ToxicFrog: I'm going to go out on a limb here and say that the answer to "would experimenting with FFI be a good way to get my feet wet with $LANGUAGE" is always "no" |
20:14 | <&McMartin> | Also, re: LD_PRELOAD: that is relevant to my last job |
20:14 | <&McMartin> | THe answer is to LD_PRELOAD a program that replaces dlopen and dlsym with cunning redirectors of your own design |
20:15 | < ToxicFrog> | McMartin: as it turns out after some experimentation, dlopen() does respect LD_PRELOAD, so all I need to do is make sure LD_PRELOAD points to a dir containing libSDL_mixer-1.2.so.0 |
20:16 | < ToxicFrog> | And yeah, part of my question here is "in rust, is this "the C FFI" or is it "tell the linker to use C linking conventions rather than whatever Rust uses" |
20:17 | <&McMartin> | P. sure it's the former |
20:17 | <&McMartin> | Any call to non-Rust code has to be marked unsafe |
20:17 | <&McMartin> | Which feels FFIy to me |
20:18 | < ToxicFrog> | In this case I would hopefully never be calling non-rust code, but making it possible for non-rust code to call me |
20:18 | < ToxicFrog> | (at which point I return NULL or true as appropriate and possibly emit stuff to the terminal) |
20:19 | <&McMartin> | That sounds like more effort than calling println!. |
20:20 | <&McMartin> | I'd get my feet wet by burning through the online Rust Book |
20:20 | <&McMartin> | WHich has the FFI stuff at the end |
20:24 | < ToxicFrog> | It's actually pretty early in the book now, but it looks like it's in the process of being reorganized. There are broken cross-chapter links, for example. |
20:25 | <&McMartin> | Aha |
20:25 | <&McMartin> | OK, in that case, maybe 1.0 reprioritized stuff |
20:28 | < ToxicFrog> | There's a (very short) bit explicitly on making Rust libraries that C can link against and call, and it basically comes down to "use #[no_mangle] pub extern for exported functions, use #[repr(C)] for structs, make sure your argument/return types are C-friendly" |
21:15 | | catadroid [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code |
21:35 | | Derakon [chriswei@Nightstar-2fe4eq.ca.comcast.net] has joined #code |
21:35 | | mode/#code [+ao Derakon Derakon] by ChanServ |
21:36 | <&Derakon> | Argh, the person who decided to use Java Preferences in our old code for storing objects was a seriously unwise. |
21:36 | <&Derakon> | Java Preferences can store primitive types like double, int, string, boolean, etc. |
21:36 | <&Derakon> | Nothing more complicated than a string or a byte[]. |
21:36 | < rolly_> | Derakon, did you kill that person? |
21:36 | <&Derakon> | Alas no. |
21:36 | < rolly_> | Oh. |
21:36 | <&Derakon> | I merely am required to maintain backwards compatibility with their system. |
21:37 | <&Derakon> | Anyway, to store arbitrary serializable objects in the Preferences, the serialized object has to be broken up into sequential chunks -- because there's a maximum length on individual values in the Preferences. |
21:37 | < rolly_> | That stinks. If you see them again, challenge them to pistols at dawn. |
21:37 | <@Tamber> | ...then bring a machine-gun. |
21:37 | < rolly_> | ha ha |
21:37 | <&Derakon> | Getting the object out of Preferences then requires reading all of the chunks (of which there may be an unknown number), reassembling them into a bytestream, and then deserializing that. |
21:38 | <&Derakon> | In the new version of the program, I've replaced all our uses of Preferences with a vastly cleaner system. |
21:38 | <&Derakon> | Including a better way of storing serialized objects. |
21:38 | <&Derakon> | UNFORTUNATELY, my boss has mandated that we not lose preferences for one of the situations in which someone was storing an Object in the Preferences. |
21:38 | <&Derakon> | So we need to keep around that ugly-as-fuck de-chunking and deserialization code. |
21:39 | <&Derakon> | For one single use case. |
21:39 | <&Derakon> | Augh. |
21:56 | | Kindamoody|afk is now known as Kindamoody |
22:04 | | Meatyhandbag [sebastianfe@Nightstar-sin.6c6.73.97.IP] has quit [Client exited] |
23:13 | | Kindamoody is now known as Kindamoody[zZz] |
23:22 | | Allie [kvirc@Nightstar-sbqrba.sub-75-219-50.myvzw.com] has joined #code |
23:23 | | Allie [kvirc@Nightstar-sbqrba.sub-75-219-50.myvzw.com] has left #code ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"] |
23:30 | | Derakon [chriswei@Nightstar-2fe4eq.ca.comcast.net] has quit [[NS] Quit: leaving] |
23:35 | | Vornicus [vorn@Nightstar-uhn82m.ct.comcast.net] has joined #code |
23:35 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
23:38 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
--- Log closed Thu May 28 00:00:46 2015 |