libera/#maemo/ Thursday, 2020-09-03

MaxdamantusLock switch epoxy replaced.11:32
Guest56062most of https sites give 'no common cipher' error. how could i solve that on fremantle?11:51
MaxdamantusPersonally, I just use a MITM proxy that I wrote, where certificates are created on-the-fly, signed by my own root certificate.12:02
Maxdamantus(so Opera has my own root certificate in its trusted store)12:03
Maxdamantushttps://gist.github.com/Maxdamantus/e32ab94dbc5d9d43298428400020620e12:04
MaxdamantusHave been meaning to refactor it so it does everything in one thread, but haven't got round to it.12:04
Maxdamantus(it spawns a new thread for each connection)12:05
siceloHalftux also compiled nginx and runs it as a proxy on the N900. you may have a look in talk.maemo.org for the binary and config12:15
MaxdamantusHm. I wonder how that works.12:20
MaxdamantusFound post: http://talk.maemo.org/showthread.php?p=156364112:21
MaxdamantusDoesn't sound like something that should work.12:22
Guest49746i missed the conversation, can someone explain what should i do?12:24
MaxdamantusUnless the browser is willing to to do some very insecure use of proxies, you basically need to be able to come up with a certificate for each domain name.12:24
MaxdamantusGuest49746: my solution is this: https://gist.github.com/Maxdamantus/e32ab94dbc5d9d43298428400020620e12:24
MaxdamantusGuest49746: that's a MITM proxy I wrote that I run on the N900. It generates certificates for any domain, signed by the given "cacert" and proxies the connection through a regular SSL client connection (with host verification provided by OpenSSL).12:25
Guest49746how i make it run? even gcc wasn't in repos12:27
L29Ahwhat sites give the error?12:28
L29Ahgoogle wox12:29
Guest49746Maxdamantus: ^12:30
MaxdamantusL29Ah: from memory, github is one example.12:30
Guest49746L29Ah: myabandonware.com12:31
MaxdamantusGuest49746: I think you'll need to add some repositories listed here: http://repository.maemo.org/12:32
Guest49746frustrates me how even wikipedia refuses to do simple http12:32
Guest49746those web people fascinated with phasing stuff out12:33
MaxdamantusPhasing things that should be phased out out.12:34
Guest49746Maxdamnatus: i have the maemo.org repos, it is not an installation candidate there12:34
Guest49746Maxdamantus: the worst thing you could do with wikipedia over http is to feed misinformation12:35
Guest49746i don't mean old ssl12:35
MaxdamantusWould you want your ISP knowing what you're looking at on Wikipedia? If common unsecured HTTP were still a thing nowadays, the ISPs would be selling all your requests to ad companies.12:38
Guest49746they still have your dns requests unless you have DoH or tunnel it through tor.12:39
MaxdamantusRight, but DNS requests are not as useful. Browsers very likely cache DNS requests so you can't even tell how frequently someone uses a website.12:40
MaxdamantusOverall not very useful to advertisers.12:40
Guest49746also everything should be secure by default, but security should not be compulsory. it would start intefering with everything everywhere12:40
Guest49746if that was case, android is more secure than OpenBSD12:41
L29Ahi'm okay with selling all my requests to ad companies12:42
L29Ahnow gimme my wikipedia12:42
Guest49746i am 'trying' to make http connection to the open-source website that loves taking screenshots of itself using all the weird browsers of the last 25 years, and it even doesn't support old ssl12:43
MaxdamantusI guess the ISP can already see how much you're using each site anyway, since they can track traffic use to domain names (either using DNS or SNI or just figuring things out based on IP address)12:43
L29Ahi recall taking a train in .il and the onboard isp just blocks https, that wasn't fun when half of sites just redirect you to https on their http12:43
Maxdamantusbut regardless, all of that is a lot less useful than the actual requests.12:43
MaxdamantusI find advertising morally undesirable.12:44
Guest49746i just want it to work, they could just make a big red warning on top of the pages.12:44
MaxdamantusSo I'm generally in favour of technical decisions which limit its effectiveness.12:44
KotCzarnyadvertising was a lot easier to cut/filter out with http12:45
KotCzarnywith https you have to use in-browser methods12:45
KotCzarnyunless you start your own recerting/bumping proxy12:45
Guest49746there are anti-ad DNS servers, they work well12:45
Guest49746AdGuard at least12:46
KotCzarnythey dont cut ads based on url unfortunatelly12:46
Guest49746however, how i compile mitm.c?12:47
L29Ahi remember being able to install gcc on n900 by adding the dev repos12:48
MaxdamantusOnce you've got gcc and a recent version of openssl, should be `gcc mitm.c -o mitm -lcrypto -lssl`12:48
Guest49746L29Ah: dev = devel?12:49
L29Ahotherwise you can make a debian arm chroot w/ qemu-user on your pc12:49
L29Ahdunno lol12:49
MaxdamantusActually, `gcc mitm.c -o mitm -D_BSD_SOURCE -D_POSIX_SOURCE -lcrypto -lssl -lpthread -std=c9912:50
Maxdamantus`12:50
KotCzarnyGuest49746: you can try my sdk chroot12:50
KotCzarnyjust download and unpack on ext3 filesystem on n90012:50
Guest49746chroot:not found12:51
KotCzarnyhttp://talk.maemo.org/showthread.php?p=152215712:52
untakenstupidnicyes but chroot itself12:52
KotCzarnyits inside12:52
KotCzarnyand a script to run it also12:53
untakenstupidnicchroot: can't execute '/bin/sh'12:56
untakenstupidnicNo such file or directory12:56
KotCzarnywhat are you trying to do?12:56
untakenstupidnicchroot n900_sdkchroot12:57
untakenstupidnicchroot is only there using root shell, which is strange12:57
KotCzarnyinteresting because i dont see any downloads12:58
untakenstupidnici had it downloaded before12:58
KotCzarnyahm ok12:58
KotCzarnyyou should use the script go-n90012:59
KotCzarnynot the chroot command alone12:59
KotCzarnyyou have to customize the script too13:00
untakenstupidnicwhere can i find the script?13:00
KotCzarnyinside?13:00
KotCzarnyn900_sdkchroot/go-n90013:00
untakenstupidniconly home and opt there13:01
KotCzarnybad download/unpack then13:01
KotCzarnyand keep in mind you shouldnt unpack it on vfat, it wont work13:02
untakenstupidnicvfat is the emmc's default?13:02
KotCzarnyi think in /opt you should have ~500MB of free space13:02
KotCzarnytry df -T13:02
untakenstupidnici see no mention of vfat13:03
KotCzarnymost likely /home/user/MyDocs is using vfat13:05
untakenstupidnicit is in /home/user13:05
KotCzarnycheck if you didnt run out of free space13:06
KotCzarnygotta run, bbl13:13
untakenstupidnicis normal gcc really supposed to be in devel?13:15
KotCzarnyhah.14:02
KotCzarnyyes14:02
KotCzarnybecause of lack of space on device14:02
KotCzarnyand devel != sdk14:02
KotCzarnydevel == untested, work in progress packages repo14:02
KotCzarnysdk == software devel/packaging env14:03
untakenstupidnicKotCzarny: does sdk repo work on n900? gotta test it14:16
KotCzarnyno14:16
KotCzarnyyou will break your rootfs14:16
KotCzarnythat's why i've created the chroot14:16
untakenstupidnichow do i unpack tar.xz14:17
KotCzarnyxz -dc file.tar.xz | tar -xp14:18
KotCzarnymake sure you are unpacking in a place with enough space14:18
KotCzarny~600MB or more14:18
KotCzarnyif you have normal pc you can also just use sdk vm14:19
KotCzarnymight be easier for you14:19
bencohthat's definitely your best bet14:19
bencohand it will be faster14:20
KotCzarnybencoh: he just needs to compile single binary i think14:20
bencohah14:20
KotCzarnyso if you have time and sdk hand you might help him if you want14:20
KotCzarny:)14:20
KotCzarnys/hand/handy/14:20
bencohThe server hosting my sdk vm is currently down14:21
KotCzarnyhmm14:21
bencohIt's the one hosting maemo.muarf.org by the way14:21
KotCzarnyi might provide a mirror if you want14:21
bencohI need to setup a replacement (I have a mirror stored on another server)14:22
KotCzarnyofftopic, flop of the month: https://mobile.twitter.com/mohammadaskar2/status/130126355163876147714:32
freemangordonhmm, maemo.org down?22:10
KotCzarnyseems so22:11
KotCzarnybut only www.22:11
freemangordonyeah22:11
freemangordonI can ssh to the machine, weird22:12
warfareapache crashed. Just needed a restart22:15
freemangordonthanks!22:16
KotCzarnyexploiting in progress?22:16
warfareNah, just midgard acting up and eating all memory.22:16
warfareHappens from time to time.22:16
KotCzarnyah, good ol' oom22:16
untakenstupidnicKotCzarny: sdk chroot works but it's openssl doesn't look new22:36
untakenstupidnicsince i think Maxdamantus' gist required new ssl22:38
KotCzarnysince you have sdk now, you can try compiling ssl too, and compiling that gist statically against new ssl22:39
untakenstupidnicdo you think it's feasible to try pkgsrc on it?22:40
KotCzarnywhat's a pgksrc?22:40
untakenstupidnicpkgsrc.org22:40
KotCzarnynever used, so i cant comment22:41

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!