Ubuntu

sudoedit 堆溢出本地提权漏洞(CVE-2021-3156)

拈花ヽ惹草 提交于 2021-02-05 15:27:19
sudoedit 堆溢出本地提权漏洞(CVE-2021-3156) 最早出处 漏洞成因 POC1 POC2 写在最后 最早出处 漏洞最早由 Qualys 研究小组发现的,博客地址: https://blog.qualys.com/vulnerabilities-research/2021/01/26/cve-2021-3156-heap-based-buffer-overflow-in-sudo-baron-samedit 漏洞成因 上面博客中写道是基于堆溢出产生的漏洞,但是细节是触发漏洞需要这样做 either through the -s option, which sets Sudo’s MODE_SHELL flag; OR through the -i option, which sets Sudo’s MODE_SHELL and MODE_LOGIN_SHELL flags; 要么 -s 要么 -i ,设置 flag 为 MODE_SHELL sudoedit -s 命令含义: 执行环境变量中所指定的 shell ,或是 /etc/passwd 里所指定的shell 正常 MODE_SHELL 的 flag 情况下,会转义字符,但是文章中表示如果以 非sudo 的身份执行 sudoedit , flag会|=MODE_EDIT ,并且 MODE_EDIT不会 被 重置

Ubuntu中找到并杀死僵尸进程

99封情书 提交于 2021-02-05 14:42:24
Ubuntu中产生zombie进程让人很懊恼啊。Windows中在任务管理器里直接找到无响应的进程并结束他就行了,但是ubuntu中需要用命令去解决。 System information as of Wed May 28 16:07:18 CST 2014 System load: 0.28 Processes: 205 Usage of /home: 1.2% of 72.15GB Users logged in: 1 Memory usage: 14% IP address for eth0: 192.168.2.113 Swap usage: 0% => There is 1 zombie process. Graph this data and manage this system at: https://landscape.canonical.com/ 可利用命令 ps aux | grep 'Z' 来找到僵尸进程,列出的结果同时也将grep列了出来,这个不用管他。 vito@vito-Lenovo-G460:~$ ps aux | grep 'Z' USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND vito 25593 0.0 0.0 0 0 ? Z 16:03 0:00 [lightdm-session]

OpenCV showing extra windows with black bar?

人走茶凉 提交于 2021-02-05 11:54:20
问题 I am working with OpenCV on Python and just from yesterday I encountered a very weird problem. When I call a very simple method, imshow() , the program always spawn additional windows which has the same name as the main one and a black bar at the central. Sometime, there is no extra window called, while sometime there are like 50 or 100 windows spawns in forever loop. It is very strange and I encountered it since yesterday, when I uninstalled the opencv-python library and downloaded opencv

libssh's functions couldn't be found on qt

五迷三道 提交于 2021-02-05 11:15:35
问题 I have cloned libssh library and built it with cmake. Building process was like this : git clone https://git.libssh.org/projects/libssh.git/ mkdir build in libssh directory. cd build cmake -DUNIT_TESTING=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug .. after this line i got this error about cmocka: Could NOT find CMocka (missing: CMOCKA_LIBRARIES CMOCKA_INCLUDE_DIR) then : rm CMakeCache.txt cmake .. make sudo make install Now I want to use this library on qt but I have some issues

Unable find printf.c on Ubuntu 16.04

℡╲_俬逩灬. 提交于 2021-02-05 11:13:51
问题 I recently switched to the Ubuntu 16.04 . I am using vscode for as IDE on Ubuntu. I configure other languages, but I could not do it for C/C++ . I created c_cpp_properties.json, launch.json & tasks.json . When I started to compile the any given code, It gives an error when the fit functions like printf or malloc . The Error message: Unable to open 'printf.c': File not found (file:///build/glibc-Cl5G7W/glibc-2.23/stdio-common/printf.c). How can I fix the problem? launch.json { // Use

Unable find printf.c on Ubuntu 16.04

别来无恙 提交于 2021-02-05 11:13:18
问题 I recently switched to the Ubuntu 16.04 . I am using vscode for as IDE on Ubuntu. I configure other languages, but I could not do it for C/C++ . I created c_cpp_properties.json, launch.json & tasks.json . When I started to compile the any given code, It gives an error when the fit functions like printf or malloc . The Error message: Unable to open 'printf.c': File not found (file:///build/glibc-Cl5G7W/glibc-2.23/stdio-common/printf.c). How can I fix the problem? launch.json { // Use

Ubuntu: _tkinter.TclError: no display name and no $DISPLAY environment variable

佐手、 提交于 2021-02-05 10:39:30
问题 So I'm trying to run a python GUI using tkinter from Ubuntu command line, on Windows 10, and get the following error: brandon@DESKTOP-V5LTF5T:~$ python3 MainApp.py Traceback (most recent call last): File "MainApp.py", line 14, in <module> root = tk.Tk() File "/usr/lib/python3.6/tkinter/__init__.py", line 2023, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: no display name and no $DISPLAY environment

Ubuntu: _tkinter.TclError: no display name and no $DISPLAY environment variable

半世苍凉 提交于 2021-02-05 10:38:06
问题 So I'm trying to run a python GUI using tkinter from Ubuntu command line, on Windows 10, and get the following error: brandon@DESKTOP-V5LTF5T:~$ python3 MainApp.py Traceback (most recent call last): File "MainApp.py", line 14, in <module> root = tk.Tk() File "/usr/lib/python3.6/tkinter/__init__.py", line 2023, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: no display name and no $DISPLAY environment

Socket Exceptions when trying to connect to MySql database from gitpod IDE (ubuntu server)

旧时模样 提交于 2021-02-05 09:35:17
问题 I'm working with the gitpod online IDE ( vs code in the browser with an ubuntu linux server behind it). I'm struggling with creating a Connection to my mysql database on an other linux (CentOS) server. I've set the Remote MySql hosts on the db server to '%' => 'all allowed'. I'm using the MySql Connector package: https://www.nuget.org/packages/MySqlConnector to connect to it. That's what my code looks like: public async Task<List<User>> GetUsersAsync() { List<User> readUsers = new List<User>(

SSH times out while connecting via ipv6 but works with ipv4 [closed]

非 Y 不嫁゛ 提交于 2021-02-05 09:27:09
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 months ago . Improve this question Yesterday I reinstalled my Ubuntu (for unrelated reasons) and since then ssh behaves very weirdly. It takes suuuper long to connect (multiple minutes). Using -vvv I found that it first tries to connect using an ipv6 (which times out) and after that tries to