当前位置:网站首页>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
边栏推荐
- In depth source code analysis servlet first program
- Delete and truncate
- Problems and solutions of database migration
- [leetcode 150] evaluation of inverse Polish expression
- Pytorch notes - observe dataloader & build lenet with torch to process cifar-10 complete code
- Calculation (enter the calculation formula to get the result)
- St table template
- 线性代数第一章-行列式
- Best practices for MySQL storage time
- Reading of denoising paper - [ridnet, iccv19] real image denoising with feature attention
猜你喜欢
Techniques et principes de détection
A sharp tool to improve work efficiency
检测技术与原理
PyTorch笔记——实现线性回归完整代码&手动或自动计算梯度代码对比
檢測技術與原理
In depth source code analysis servlet first program
Automatic control (Han min version)
A general U-shaped transformer for image restoration
Kalman filter and inertial integrated navigation
St table template
随机推荐
Class loading and classloader understanding
程序設計訓練
Consistent hash algorithm used for redis cache load balancing
去噪论文阅读——[RIDNet, ICCV19]Real Image Denoising with Feature Attention
LockSupport. Park and unpark, wait and notify
C language file operation
自动控制原理知识点整合归纳(韩敏版)
How to use comparative learning to do unsupervised - [cvpr22] training & [eccv20] image translation
Techniques et principes de détection
1. Calculate a + B
Fundamentals of in-depth learning -- a simple understanding of meta learning (from Li Hongyi's course notes)
St table template
Paper on Image Restoration - [red net, nips16] image restoration using very deep revolutionary encoder decoder networks wi
3. Continuous integer
Integers have friends interval GCD + double pointer
Problems and solutions of database migration
[leetcode 401] binary Watch
MySQL basic madness theory
Kibana search syntax
Fact final variable and final variable