Monday, February 26, 2024
[00:00:33]
*
antoine49
joined #linux
[00:22:30]
*
jared
joined #linux
[00:43:04]
jared
Can you hack your own linux computer?
[00:43:44]
aaabbb
jared: of course, you can do whatever you want with your own computer
[00:44:22]
jared
Could you show a newbie how
[00:44:57]
aaabbb
well what do you mean by hack then?
[01:16:14]
f
that's not how hacking works
[01:16:47]
aaabbb
f: ig someone could practice hacking by installing like an outdated setuid application and explore how to privesc
[01:16:49]
f
we don't condone anything illegal here either
[01:17:07]
aaabbb
except j walking
[01:19:35]
jared
looks like i got some conversation going
[01:26:44]
*
hippy
joined #linux
[01:27:50]
nR
[IRC-nERDs] <+nerds> [OWASP Vulnerable Web Applications Directory | OWASP Foundation]
[01:27:52]
Demon
[url] OWASP Vulnerable Web Applications Directory | OWASP Foundation | owasp.org
[01:28:12]
heather
if you go here they have fun hackable labs for security newbies
[01:28:56]
aaabbb
also look up "ctf" sites ("capture the flag")
[01:31:53]
nR
[IRC-nERDs] <+nerds> [GitHub - InsiderPhD/Generic-University: Vulnerable API]
[01:31:54]
Demon
[url] GitHub - InsiderPhD/Generic-University: Vulnerable API | github.com
[01:37:54]
*
hippy
joined #linux
[01:39:10]
*
*.freenode.net
set mode +ovo DickCheney Demon DarthOreo
[01:39:13]
* Netsplit healed 50 users rejoined
Click to toggle user list
schizo
HUBI
zrubavel
egrouse
fs2
thelounge41
mrplaydoh
starz
nibbier
oxy
Guest5710
Enviosity
Smeef
PickledEggs
Guest778
Thanzex5395
Saphir
Epistam
ORANGE_MAN_BAD
coronavirus
Guest2297721
MZx90
alphaspi__
Penguin
xcpep
demon__
Synergiance
wjlafrance
Hackerpcs
DickCheney
`slikts
SoulsForBelial
sbine
robo
farooq4
DarthOreo
Glorfindel
sickprodigy
Guest708
akaWolf
Guest6172
nick_
jared
cgp1
franzer
tyladams33
finsternis
MysticKnightUK
zhongfu
Demon
[01:39:15]
*
Google
set mode +v IRCDriven
[01:41:33]
*
*.freenode.net
set mode +ovo DickCheney Demon DarthOreo
[01:41:36]
* Netsplit healed 50 users rejoined
Click to toggle user list
coronavirus
zrubavel
oxy
wjlafrance
Hackerpcs
jared
egrouse
starz
demon__
fs2
xcpep
Enviosity
mrplaydoh
Smeef
nibbier
cgp1
Guest778
MZx90
franzer
Guest708
HUBI
schizo
DarthOreo
Thanzex5395
sickprodigy
sbine
PickledEggs
Synergiance
Guest2297721
SoulsForBelial
ORANGE_MAN_BAD
Epistam
alphaspi__
Saphir
DickCheney
`slikts
zhongfu
Demon
MysticKnightUK
finsternis
Penguin
robo
Guest6172
Glorfindel
nick_
farooq4
akaWolf
thelounge41
Guest5710
tyladams33
[01:41:38]
*
Google
set mode +v IRCDriven
[01:43:22]
*
MysticKnightUK
joined #linux
[01:50:17]
*
Enviosity
joined #linux
[02:18:56]
*
*.freenode.net
set mode +ovo DickCheney Demon DarthOreo
[02:18:59]
* Netsplit healed 49 users rejoined
Click to toggle user list
egrouse
starz
Guest6172
Saphir
Guest708
nibbier
Smeef
DickCheney
franzer
mrplaydoh
Hackerpcs
Thanzex5395
finsternis
Guest5710
demon__
Synergiance
akaWolf
ORANGE_MAN_BAD
PickledEggs
fs2
sickprodigy
alphaspi__
zhongfu
coronavirus
Epistam
Enviosity
jared
zrubavel
nick_
`slikts
SoulsForBelial
tyladams33
thelounge41
MysticKnightUK
HUBI
wjlafrance
Guest2297721
robo
xcpep
schizo
MZx90
DarthOreo
Guest778
Glorfindel
oxy
Demon
Penguin
cgp1
farooq4
[02:28:14]
*
*.freenode.net
set mode +oovoYo heather nR nR aaabbb [3] [3]
[02:28:14]
*
*.freenode.net
set mode +ooo Google riddle f
[02:28:14]
*
*.freenode.net
set mode +o ComputerTech
[02:28:15]
*
*.freenode.net
set mode +o End3r
[02:28:16]
* Netsplit healed 85 users rejoined
Click to toggle user list
Leatherface
UserOO7
ShOrTy
Tokki
dcdc4567
tjbp
Manouchehri
TheFatherMind
madmax
FH_thecat
G3ngh1s_
stairmast0r
wez
onesecb
jkl
Mintle
Colpop4323
Coniass
Guest22188
ThirdOfSeven
Canucktux
coumbole
lockywolf
aaabbb
microfracture
Doc-Saintly
goodlings8
tabakhase
heather
techspan
z3uS
Patrick
probonic
nlo
y2k
splashd
Whiskey
seifer
BridgeIGN
lyri
ABBA
kabir
torebsd
thelounge39
sOdAgiRL
CompanionCube
nR
End3r
neko
afx237
th3r00t^
Guest10480
ScottE
unsyncing
barnito_
sl4ck3r
amalek
travelleri
nukedclx
Stryyker
dino82
redsh
CrystalMath
Hoosilon
alphad
television
Paul
riddle
Koragg
Parabellus
Dalius
shazzr
TW1920
sftp
Guest4089
ironbug_znc
localhost00
acovrig87295
ComputerTech
x-warrior
FruitieX
dmt
gabes5
ColdKeyboard
nlsun
[02:28:22]
*
*.freenode.net
set mode +Yoo [3] [3] CrystalMath
[02:28:23]
* Netsplit healed 4 users rejoined
Click to toggle user list
CrystalMath
[3]
Manouchehri
deadmorozz
[02:28:25]
*
Google
set mode +v IRCDriven
[02:31:49]
*
Enviosity
joined #linux
[03:07:00]
*
El
joined #linux
[03:30:39]
*
Coniass
joined #linux
[04:04:31]
*
jared
joined #linux
[04:08:32]
* Netsplit healed 2 users rejoined
Click to toggle user list
_S4MUR4I_
_S4MUR4I_
[04:19:30]
*
Haroeris
joined #linux
[05:09:30]
*
SoulsForBelial_
joined #linux
[05:10:16]
*
sbine
joined #linux
[05:15:26]
*
barnito
joined #linux
[05:15:55]
*
pagz
joined #linux
[05:51:08]
*
Google
set mode +v IRCDriven
[06:22:53]
*
barnito
joined #linux
[06:33:11]
*
antoine49
joined #linux
[07:09:18]
*
El
joined #linux
[07:10:47]
*
diamond
joined #linux
[07:31:08]
*
suswagatam-rong
joined #linux
[07:35:06]
*
szp
joined #linux
[07:38:01]
*
szp
joined #linux
[07:43:09]
*
szp1
joined #linux
[07:52:48]
*
szp1
joined #linux
[07:56:01]
*
lyri
joined #linux
[08:17:16]
*
chchjesus
joined #linux
[08:29:00]
*
davispuh
joined #linux
[08:36:21]
*
web-89
joined #linux
[08:47:23]
*
Guest228594014463
joined #linux
[09:11:14]
*
Intruder777
joined #linux
[09:38:02]
*
RyuwNet
joined #linux
[09:40:07]
*
BADB172
joined #linux
[09:53:35]
BADB172
hey! I'm trying to create simple init from scratch, it runs fine but I can only see log messages (printk) from kernel, is it documented somewhere what you have to do to take over the framebuffer console?
[09:54:03]
BADB172
I've looked source code of agetty and mingetty and tried to do the same: open /dev/console or /dev/tty1, ioctl with TIOCSCTTY, dup twice and then sys_write to STDOUT_FILENO but there is no visible output
[09:54:40]
BADB172
using /dev/fb0 works but even then fbcon still runs on the background, overwriting my graphics with it's blinking cursor - while I could patch fbcon to not do that but obviously that's not how it should work, so what's the official way to "take over the framebuffer console" from userspace?
[09:55:14]
BADB172
I apologize if this is a stupid question but I can't find anything with Google and I've wasted so many days trying to get this to work :/
[09:58:53]
BADB172
well, "wasted so many days" is a harsh way to put it, this is a fun project for me but being stuck on the same thing for days on end is less fun. if anyone can point me in the right direction I'd appreciate that a lot, thanks!
[10:05:35]
aaabbb
so i don't know about the framebuffer, but if you are doing this with the drm node, you would need DRM_IOCTL_SET_MASTER
[10:13:44]
BADB172
I am testing this out on Raspberry Pi 3B+, I currently have CONFIG_DRM=n because whenever I enable it I get no signal from HDMI after it starts the DRM/KMS driver (I have dtoverlay=vc4-kms-v3d and the correct .dtbo in overlays) and no workarounds from Google have worked (like video=HDMI-A-1:1920x in cmdline)
[10:15:21]
BADB172
I really don't know enough about DRM to say if that's the correct behavior and I would need to do something in userspace but I assume it's not because the console should work with DRM too, right? like on my desktop there's i915drmfb which provides necessary things for the framebuffer console to work
[10:15:49]
aaabbb
you're right and i really only know how to do it with drm, but that's not what you're looking for
[10:22:33]
*
putolinux
joined #linux
[10:23:24]
BADB172
I've seen many people say how fbdev/fbcon is really buggy 90s code and full of security issues, at some point there was kmscon but it never became a replacement in mainline. all that sounds like it might not be a good idea to start a new project relying on fbdev, even though I assume it DRM's fbdev emulation is not going to disappear anytime soon? fbcon/CONFIG_VT could become deprecated so maybe it's not a
[10:23:30]
BADB172
good idea to depend on those.. is there a good documentation how to do what I want with DRM, why is DRM_IOCTL_SET_MASTER important/what does it do?
[10:25:09]
aaabbb
CONFIG_VT is horrible
[10:25:15]
aaabbb
lots of legacy code
[10:25:39]
aaabbb
DRM_IOCTL_SET_MASTER sets a program as the sole owner of the screen, it is an ioctl passed to /dev/dri/card0
[10:27:19]
BADB172
I assume there is a lot of other things to do than just DRM_IOCTL_SET_MASTER or? is the whole process documented somewhere so you don't have to spend the whole day educating me :D
[10:27:48]
BADB172
I just want a simple way to draw pixels on the screen without pulling wayland and huge amount of libraries which I think shouldn't be needed for this
[10:29:22]
aaabbb
it's Xorg that opens /dev/dri/card0 and does set master
[10:29:54]
aaabbb
then it does a bunch of ioctls that depend on your gpu
[10:29:59]
aaabbb
various things to set up pixel buffers etc
[10:31:10]
*
robo
joined #linux
[10:31:54]
BADB172
oh, I see. ideally I would like to make my code as portable as possible, embedded systems might not have any GPU, just some kind of CPU-based software rendering. would that still work with simpledrm or something like that or is this one of those use cases where framebuffer makes more sense?
[10:32:34]
aaabbb
a framebuffer is waaaay easier to use than drm
[10:33:03]
*
Peter
joined #linux
[10:37:04]
BADB172
yeah, framebuffer sounds like what I want as I don't really need acceleration or good performance, just a portable way to draw text or simple graphics on the screen. do you think I should worry about framebuffer support being removed in the future, because there was a lot of talk about how fbcon, fbdev etc is full of legacy and vulnerable code and should be replaced with something better? maybe it's best
[10:37:10]
BADB172
to just use /dev/fb0 and not use any of the stuff in fbcon which provides text rendering with bitmap fonts etc?
[10:38:22]
* Netsplit healed 2 users rejoined
Click to toggle user list
AT-x310
Peter
[10:40:54]
aaabbb
BADB172: it's certainly never gonna be removed
[10:41:18]
aaabbb
using /dev/fb0 directly is by far the easiest and most universally supported
[10:59:32]
*
El
joined #linux
[11:01:42]
BADB172
aaabbb: that's reassuring to hear, thanks! I know you said you can't help with framebuffer but as you're obviously more experienced wrt working with kernel, where should I look to find documentation about this (telling kernel "don't draw console on the screen, I'm doing everything from now on"), this is one of the simplest things one could hope to do so I guess I must be looking at the wrong place
[11:02:07]
*
Intruder777
left #linux
[11:06:50]
aaabbb
BADB172: linux has some very extensive and nice documentation that describes exactly how the framebufer works. most of what is printed to the framebuffer by the *kernel* is printk() calls
[11:07:05]
aaabbb
you can adjust that by changing the loglevel
[11:08:23]
aaabbb
printk(KERN_INFO, "this message will be printed at loglevel info, also, %d + %d = %d", a, b, a + b);
[11:08:33]
aaabbb
that kind of thing, in kernel code, will cause the message to be printed to the fb
[11:08:41]
aaabbb
no matter what you are doing with the fb
[11:08:46]
aaabbb
(ignore the 3)
[11:10:41]
aaabbb
basically what it seems like you want is access to the framebuffer *without* a console behind it
[11:10:58]
BADB172
aaabbb: I'll try to read it again, I guess the problem is it's not necessarily how framebuffer works but how fbcon uses the framebuffer by default. I guess I could set loglevel so that nothing is output and then disable blinking cursor, but it seems like there should be a simpler way to just "disable_fb_console();" so I don't have to worry about it doing something like refreshing screen and messing with my
[11:11:04]
BADB172
output because it's running in the background
[11:12:20]
BADB172
yeah, after the boot is complete I want to disable the console that's on the screen and start drawing my own thing to the framebuffer without having to worry that kernel is trying to do something with the framebuffer too (like it currently does, e.g. it redraws the blinking cursor over my graphics or if new printk happens it will too overwrite my graphics etc)
[11:13:11]
aaabbb
maybe boot with "console=/dev/null" in the kernel parameters?
[11:13:30]
aaabbb
what you want to do is tell the kernel not to attach the console to the framebuffer
[11:14:21]
aaabbb
another possibility is ioctl(fb_fd, KDSETMODE, KD_GRAPHICS)
[11:15:11]
nR
[IRC-nERDs] <+nerds> [ioctl_console(2) - Linux manual page]
[11:15:29]
aaabbb
setting it to graphics mode is probably preferable to murdering the console itself
[11:16:49]
BADB172
I guess that ioctl to set it to KD_GRAPHICS is what I've been looking, I would like to have the console shown while booting so if there's any kind of errors it would show information about them but if everything goes alright then my application starts running and will have the framebuffer to itself
[11:16:59]
aaabbb
yeah then you want the ioctl
[11:17:04]
aaabbb
on the console
[11:17:34]
BADB172
I'll try that, thank you very much! looks like my google-fu skills need some improving
[11:18:08]
aaabbb
i looked up "linux framebuffer disable console" and "linux fb detach console" and stuff lke that
[11:35:05]
BADB172
well, at least that hides the cursor but printk messages are being rendered. for example when I plug USB device it will mess my graphics up until next redraw happens, ouch. this is quite a puzzle for such a simple thing!
[11:35:25]
aaabbb
you can change the loglevel to remove those
[11:35:43]
aaabbb
"strace dmesg -D" and see how it does it
[11:36:37]
aaabbb
syslog(6) is the syscall apparently
[11:36:55]
aaabbb
6 = SYSLOG_ACTION_CONSOLE_OFF
[11:52:32]
BADB172
aaabbb: cool, that did it, thanks! I was just surprised there is no single function to set console status to off, that would seem like the most logical API. but I guess interfacing with kernel isn't always simple :) fwiw sysrq messages still mess up my graphics but those are a really special case, after all user could issue magic sysrq command to halt the system or whatever so I'm not worried about that
[11:53:24]
aaabbb
you can prevent sysrq with kernel.sysrq i believe
[11:53:27]
BADB172
and if needed I could disable those sysrq keys that are a problem, it's not an issue for me right now. thanks again, this is really great!
[11:53:37]
BADB172
yeah it's no problem :)
[11:53:47]
aaabbb
that will let you set a bitmask to disable specific sysrq. ofc kernel panic will still print :p
[11:57:25]
*
sftp
joined #linux
[12:25:17]
*
Guest228594014463
joined #linux
[12:55:40]
*
PupUserbbc1da
joined #linux
[12:56:12]
*
PupUserbbc1da
left #linux
[13:10:50]
*
sirbravo_
joined #linux
[13:17:23]
*
tmz
joined #linux
[13:20:00]
*
CodeSlingerPaul
joined #linux
[13:44:19]
*
web-10
joined #linux
[14:03:37]
*
antoine49
joined #linux
[14:10:22]
* Netsplit healed 2 users rejoined
Click to toggle user list
oopsie
web-10
[14:46:40]
*
gabes5
joined #linux
[14:50:16]
*
web-10
joined #linux
[15:04:38]
*
bergelmir92
joined #linux
[15:16:14]
*
antoine49
joined #linux
[15:26:46]
*
web-10
joined #linux
[15:31:19]
*
Coniass
joined #linux
[15:33:14]
*
woodwose
joined #linux
[15:46:24]
*
ahmer
joined #linux
[16:27:24]
*
vi64
joined #linux
[16:28:46]
*
brainium
joined #linux
[16:32:39]
*
seekr
joined #linux
[16:41:34]
*
Guest228594014463
joined #linux
[16:43:31]
*
bergelmir92
joined #linux
[17:07:05]
*
etnguyen03
joined #linux
[17:31:36]
*
robo
joined #linux
[17:36:01]
*
Haroeris
joined #linux
[17:38:27]
*
Psycho
joined #linux
[17:42:01]
*
shazzr0
joined #linux
[17:55:19]
*
web-10
joined #linux
[18:07:38]
*
esraa
joined #linux
[18:30:45]
*
web-10
joined #linux
[19:00:40]
*
Bellum
joined #linux
[19:45:39]
*
tech
joined #linux
[20:01:21]
*
tech
joined #linux
[20:24:31]
*
auser0
joined #linux
[20:25:39]
*
tech_
joined #linux
[20:39:56]
*
auser0
joined #linux
[20:47:52]
*
KareemPharmacist
joined #linux
[20:55:05]
*
illicit_user853
joined #linux
[21:27:37]
*
lyri
joined #linux
[21:34:44]
*
rasa
joined #linux
[21:41:19]
*
heather
joined #linux
[21:41:19]
*
Google
set mode +o heather
[21:47:03]
*
Guest228594014463
joined #linux
[21:56:51]
*
krushia
joined #linux
[21:57:30]
*
jared
joined #linux
[22:48:22]
*
etnguyen03
joined #linux
[23:17:54]
*
aagreb
joined #linux
[23:20:14]
*
Intruder777
joined #linux
[23:31:05]
aagreb
I have a weird problem, I get random segfaults when launching different gnome applications
[23:31:10]
aagreb
can someone help me with that?
[23:34:01]
*
Intruder777
left #linux
[23:34:52]
heather
what other information can you provide?
[23:35:11]
heather
how about you reproduce it, and send us a screenshot from a terminal
[23:40:15]
aagreb
For example whenever I try to launch gedit I get a segfault. Interestingly it only happens with my user. As root i can launch it without problems. https://imgur.com/a/cQkqI2e
[23:40:16]
nR
[IRC-nERDs] <+nerds> [Imgur: The magic of the Internet]
[23:41:54]
aagreb
Another problem that I have is that I get a segault when I enter certain directories in nautilus. I already found out that it has to have something to do with the filename. For example all directories containing a file ending in .json crashes nautilus with a sefault
[23:42:30]
aagreb
The logs of nautillus don't inlcude any suspicious information, it just crashes
[23:43:11]
aagreb
Like the other problem this only happens with my user, not with root
[23:43:54]
End3r
I would wipe your ~/.config dir (AFTER BACKING IT UP) as root, then logging back in as the user and see if it still happens. I would bet it is a config error.
[23:44:06]
nR
[IRC-nERDs] <+nerds> [Imgur: The magic of the Internet]
[23:44:47]
End3r
dinner time, bbl
[23:51:04]
*
Guest228594014463
joined #linux
[23:53:47]
*
etnguyen03
joined #linux