Write static library (ar, package), write dynamic library (sharing principle, -fPIC, -shared), install static library (system path (library name)/specified path (-I, -L option)), install dynamic library ( ldd,-static, tells the loader the path to search

Table of Contents How to write a library static library Introduction — static library principle form static library introduce ar Options Create static library Add files to existing static library After we have a library, how should we give it to others? dynamic library The difference between static library and dynamic library linking static library […]

Yunchen Shooting Range Medium_Socnet The internal network is docker. There is no site agent. There is no privilege escalation method for gcc. Solve the problem that ldd is too high and cannot execute exp. Specify the so file.

First, we can scan the current intranet through arp-scan. But I don’t know why it can’t be scanned out. Then we can use fscan to get the survival The scan here generally only opens port 22. So we use nmap for information collection scanning nmap -sS -sV -A -p- 172.25.0.13 Perform version service scanning through […]

Spring’s @FieldDefaults and @Data: Lombok annotations for cleaner code

Introduction As Java developers, we often find ourselves stuck in boilerplate code. Accessor methods, modifier methods, constructors, equals(), hashCode(), and toString() are essential, but take up a lot of space and distract from the core logic of the application. The Spring framework is widely used for building enterprise applications and is a fan of reducing […]

Library files installed under /usr/local/lib and using ldd to view dynamic link libraries

Directory index Preface Currently installed software 1.OpenCV4.6.0 2.Ceres 3.ONNXRUNTIME 4. Libtorch 5.LCM 6. Faiss 7.OpenGV 8.Backward 9. libjpeg-turbo 10.Pangolin GTSAM Refer to the installation documentation ldd view dynamic link library library search directory Foreword Because rm accidentally deleted /usr/local/lib in the system directory before, it was difficult to recover, so I reinstalled the libraries inside. […]

tiny4412 serial port driver analysis five — TTY driver source code on LDD3

For this part about tty, please refer to: “Linux Device Driver Development Detailed Second Edition” Chapter 14 Linux Terminal Device Driver “Mastering Linux Device Driver Development” Chapter 6 Serial Device Driver “Linux Device Drivers, Third Edition” Chapter 18 TTY Driver The following are some serial port related documents: http://pan.baidu.com/s/1mg20Umc Makefile: # Comment/uncomment the following line […]

Vulnhub – ColddBoxEasy_EN

Vulnhub–ColddBoxEasy_EN Information collection Live host scan 192.168.197.159 ┌──(root?kali)-[~] └─# nmap -sn 192.168.197.0/24 Starting Nmap 7.92 (https://nmap.org) at 2023-07-20 13:56 CST Nmap scan report for bogon (192.168.197.1) Host is up (0.00015s latency). MAC Address: 00:50:56:C0:00:08 (VMware) Nmap scan report for bogon (192.168.197.2) Host is up (0.00015s latency). MAC Address: 00:50:56:F2:C0:58 (VMware) Nmap scan report for bogon […]

[Solved] In-depth understanding of Elasticsearch (17) – solution to sudden increase in fielddata memory usage

I. Description of the problem Observing the 7-day cluster monitoring-advanced monitoring-fielddata memory usage, it was found that there was a surge on 8/23, and the indicators have not come down recently. The following three questions are raised for the current situation: 1) Why is the indicator here soaring? 2) How can the indicator be lowered? […]

[Solved] SpringDataElasticsearch query ES to sort an error Fielddata is disabled on text fields by default. Set fielddata=tru

1. Description of the problem Version: ES: 6.8.3 Use spring-data-elasticsearch to operate es to add, delete, modify and search, and an error occurred when sorting operation: Caused by: org.elasticsearch.ElasticsearchException: Elasticsearch exception [type=illegal_argument_exception, reason=Fielddata is disabled on text fields by default. Set fielddata=true on [receive_time] in order to load fielddata in memory by uninverting the inverted […]