当前位置:网站首页>Miscellaneous 1
Miscellaneous 1
2022-04-23 06:26:00 【lingedeng】
1. windows git Server installation
Tool preparation :
Git-2.26.2-64-bit.exe
Copssh_4.1.0_Installer.exe
1. newly build git System users , Passwords never expire
2. normal setup Copssh and Git
3. open Copssh Control panel , choice User->Add, Select the system user created above in the pop-up dialog box , Others keep the default values
4. If you don't need password free login in the future , Then the basic environment is completed
5. adopt git pull/push git@ip:/path/to/foo.git The following error occurred during command access :
git-upload-pack:command not found Or when the dynamic library does not find the symbol , It can be solved by the following methods
find git Install under directory mingw64/bin Catalog , Copy all of it to copssh Install under directory bin Catalog ( notes : Select skip when copying and replacing )
2. busybox compile
busybox-1.31.1.tar.bz2
1. decompression tar jxvf busybox-1.31.1.tar.bz2
2. cd busybox-1.31.1
3. make defconfig|allyesconfig|allnoconfig, Usually choose defconfig
4. make menuconfig Generated by the previous command .config File adjustment ( notes : The system needs libncurses5-devel (centos)|libncurses5-dev (ubuntu))
4.1 Settings -> Build static binary (no shared libs)
4.2 Settings -> (./_install) Destination path for 'make install'
5. Choose what you need according to your requirements applet (vi, udhcpc. etc)
6. perform make
7. perform make install, Will generate... In the current directory _install Catalog , The required busybox Put in _install/bin Directory
8. have access to busybox applet_name Execute the corresponding command in a way
3. x86_64 new type initrd.img Extract and decompress
adopt cpio Command to initrd Extract the file , But the contents of the directory after decompression are kernel/x86/microcode/AuthenticAMD.bin, Directories and files without root file system , Only one microcode file .
x86_64 The production method of root file system on the platform has changed , The root file system needs to be extracted in the following way .
1. ubuntu Can pass apt install binwalk install
2. perform binwalk initrd.img, Output is as follows
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
0 0x0 ASCII cpio archive (SVR4 with no CRC), file name: "kernel", file name length: "0x00000007", file size: "0x00000000"
120 0x78 ASCII cpio archive (SVR4 with no CRC), file name: "kernel/x86", file name length: "0x0000000B", file size: "0x00000000"
244 0xF4 ASCII cpio archive (SVR4 with no CRC), file name: "kernel/x86/microcode", file name length: "0x00000015", file size: "0x00000000"
376 0x178 ASCII cpio archive (SVR4 with no CRC), file name: "kernel/x86/microcode/.enuineIntel.align.0123456789abc", file name length: "0x00000036", file size: "0x00000000"
540 0x21C ASCII cpio archive (SVR4 with no CRC), file name: "kernel/x86/microcode/GenuineIntel.bin", file name length: "0x00000026", file size: "0x002DC800"
3001008 0x2DCAB0 ASCII cpio archive (SVR4 with no CRC), file name: "TRAILER!!!", file name length: "0x0000000B", file size: "0x00000000"
3001344 0x2DCC00 gzip compressed data, from Unix, last modified: 2021-05-31 08:07:39
55517060 0x34F1F84 MySQL MISAM index file Version 6
3. find gzip The file in img Offset in file , The above example is 3001344, Use the following command to unzip
dd if=../initrd.img bs=3001344 skip=1 | zcat | cpio -id --no-absolute-filenames -v
notes : If you pass binwalk The information to be viewed is in compressed format LZMA compressed data, You need to change the... In the above command zcat It is amended as follows lzcat
版权声明
本文为[lingedeng]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210616199093.html
边栏推荐
- Complete example demonstration of creating table to page - joint table query
- The problem that the page will refresh automatically after clicking the submit button on the form is solved
- Implementation of displaying database pictures to browser tables based on thymeleaf
- PyTorch笔记——观察DataLoader&用torch构建LeNet处理CIFAR-10完整代码
- Illustrate the significance of hashcode
- POI and easyexcel exercises
- Storing inherited knowledge in cloud computing
- 自动控制原理知识点整合归纳(韩敏版)
- LockSupport. Park and unpark, wait and notify
- Collections multiple parameter sorting
猜你喜欢
Reading of denoising papers - [cvpr2022] blind2blind: self supervised image denoising with visible blind spots
St table template
Pytorch notes - observe dataloader & build lenet with torch to process cifar-10 complete code
Chapter 4 of line generation - linear correlation of vector systems
SQL injection
自動控制(韓敏版)
Illustrate the significance of hashcode
Basic knowledge of network in cloud computing
自动控制(韩敏版)
图像恢复论文——[RED-Net, NIPS16]Image Restoration Using Very Deep Convolutional Encoder-Decoder Networks wi
随机推荐
Use of multithreaded executors
Failure to deliver XID in Seata distributed transaction project
JSP syntax and JSTL tag
LockSupport. Park and unpark, wait and notify
Basic knowledge of network in cloud computing
Three ways to create threads
How does MySQL convert stored seconds into dates
图像恢复论文——[RED-Net, NIPS16]Image Restoration Using Very Deep Convolutional Encoder-Decoder Networks wi
Addition, deletion, query and modification of data
Create binary tree
Programming record - picture rotation function SciPy ndimage. Simple use and effect observation of rotate()
Paper on LDCT image reconstruction: edge enhancement based transformer for medical image denoising
線性代數第一章-行列式
Troubleshooting of data deleted and reappeared problems
C array
The bottom implementation principle of thread - static agent mode
PyTorch笔记——观察DataLoader&用torch构建LeNet处理CIFAR-10完整代码
Framework analysis 1 Introduction to system architecture
3. Continuous integer
1. Calculate a + B