β β β Uππ»βΊπ«Δπ¬πβ β β β
π¦Basics of mounting and using the mount command
A) What is mount
Mounting in Linux allows you to access the contents of the disk and organize the structure of the file system. Using mount, you can also open a disk image (for example, created with the dd program ) for operation , as well as open a variety of file systems and disk images (for example, virtual machine disk images) for access and editing; even remote network directories can be mounted, making them available as if they were files on any other local storage.
In addition to the fact that you can work with disk images using mount, correct mount settings are necessary for the computer to which the disk for forensic analysis is connected - for example, this disk should not be automatically mounted with write rights (so as not to be corrupted).
Linux has such a thing as βmountingβ a disk. To access the files on this drive, you must first mount it. The question may arise, why such difficulties? Mounting is one of the most powerful things that lets you customize your filesystem with amazing flexibility!
The essence of mounting is that a new directory (regular folder) is created in the file system, for example, this is the / mnt / disk_d folder . And then the mount command indicates that now, for example, the / dev / sda disk is mounted in the / mnt / disk_d directory . After that, you can access the files on the / dev / sda disk by opening the / mnt / disk_d folder in any file manager
B) With the help of this approach - when any disk can be any folder in the system, you can make a very flexible setting. The most common example encountered in practice: user files are stored in the / home / username / folder , for example, I have this folder / home / mial / . When installing the operating system, I can make it so that my second or third disk (and not the system one) will be mounted at / home / mial / . That is, the entire operating system will be located on one disk, and all my user files on the other. What does it do? In case of reinstalling the system, I will re-configure mounting the disk with my files to the / home / mial / folder and as a result, in the new, just installed system, all my documents, photos and so on will already be in place!
β β β Uππ»βΊπ«Δπ¬πβ β β β
π¦Basics of mounting and using the mount command
A) What is mount
Mounting in Linux allows you to access the contents of the disk and organize the structure of the file system. Using mount, you can also open a disk image (for example, created with the dd program ) for operation , as well as open a variety of file systems and disk images (for example, virtual machine disk images) for access and editing; even remote network directories can be mounted, making them available as if they were files on any other local storage.
In addition to the fact that you can work with disk images using mount, correct mount settings are necessary for the computer to which the disk for forensic analysis is connected - for example, this disk should not be automatically mounted with write rights (so as not to be corrupted).
Linux has such a thing as βmountingβ a disk. To access the files on this drive, you must first mount it. The question may arise, why such difficulties? Mounting is one of the most powerful things that lets you customize your filesystem with amazing flexibility!
The essence of mounting is that a new directory (regular folder) is created in the file system, for example, this is the / mnt / disk_d folder . And then the mount command indicates that now, for example, the / dev / sda disk is mounted in the / mnt / disk_d directory . After that, you can access the files on the / dev / sda disk by opening the / mnt / disk_d folder in any file manager
B) With the help of this approach - when any disk can be any folder in the system, you can make a very flexible setting. The most common example encountered in practice: user files are stored in the / home / username / folder , for example, I have this folder / home / mial / . When installing the operating system, I can make it so that my second or third disk (and not the system one) will be mounted at / home / mial / . That is, the entire operating system will be located on one disk, and all my user files on the other. What does it do? In case of reinstalling the system, I will re-configure mounting the disk with my files to the / home / mial / folder and as a result, in the new, just installed system, all my documents, photos and so on will already be in place!
β β β Uππ»βΊπ«Δπ¬πβ β β β
Forwarded from UNDERCODE NEWS
Forwarded from UNDERCODE NEWS
β β β Uππ»βΊπ«Δπ¬πβ β β β
π¦TOP BUGS IN ANDROID 11:
A) New power menu is worse without Google Home
Many praise the power menu in Android 11. There are switches for controlling home appliances. If you don't use the Google Home app or don't have smart appliances, the menu gets worse.
1) You cannot click on an empty space to close the menu, you must use the back gesture.
2) The Restart and Shutdown buttons are at the very top and are difficult to reach due to the empty space where the buttons for household appliances could be.
3) The Lock button is hidden behind another menu to make room for fixture buttons you don't have.
4) The menu supports smart home applications, but applications do not yet support this menu.
B) Not ready audio controls in quick settings
First you need to enable the hidden developer menu to activate the audio controls. These elements are bugged and sometimes disappear. If this happens, you need to disable this setting, reboot the device, turn it on again and then reboot again. In advanced view, items are not centered. This does not always happen, but it does often, in devices like the Pixel 4 XL.
C) Custom launchers can be reset
This bug will be fixed in future beta versions, but now the system periodically returns to the Pixel Launcher on its own instead of the launcher you installed. Usually, the screen turns off and on, after which your launcher returns.
β β β Uππ»βΊπ«Δπ¬πβ β β β
π¦TOP BUGS IN ANDROID 11:
A) New power menu is worse without Google Home
Many praise the power menu in Android 11. There are switches for controlling home appliances. If you don't use the Google Home app or don't have smart appliances, the menu gets worse.
1) You cannot click on an empty space to close the menu, you must use the back gesture.
2) The Restart and Shutdown buttons are at the very top and are difficult to reach due to the empty space where the buttons for household appliances could be.
3) The Lock button is hidden behind another menu to make room for fixture buttons you don't have.
4) The menu supports smart home applications, but applications do not yet support this menu.
B) Not ready audio controls in quick settings
First you need to enable the hidden developer menu to activate the audio controls. These elements are bugged and sometimes disappear. If this happens, you need to disable this setting, reboot the device, turn it on again and then reboot again. In advanced view, items are not centered. This does not always happen, but it does often, in devices like the Pixel 4 XL.
C) Custom launchers can be reset
This bug will be fixed in future beta versions, but now the system periodically returns to the Pixel Launcher on its own instead of the launcher you installed. Usually, the screen turns off and on, after which your launcher returns.
β β β Uππ»βΊπ«Δπ¬πβ β β β
Forwarded from UNDERCODE NEWS
β β β Uππ»βΊπ«Δπ¬πβ β β β
Hacking dockers :
`docker pull usertaken/archlinux-pentest-lxde` - [Arch Linux Penetration Tester](https://hub.docker.com/r/usertaken/archlinux-pentest-lxde/)
`docker pull ismisepaul/securityshepherd` - [OWASP Security Shepherd](https://hub.docker.com/r/ismisepaul/securityshepherd/)
`docker-compose build && docker-compose up` - [OWASP NodeGoat](https://github.com/owasp/nodegoat#option-3---run-nodegoat-on-docker)
`docker pull bkimminich/juice-shop` - [OWASP Juice Shop](https://github.com/bkimminich/juice-shop#docker-container--)
β β β Uππ»βΊπ«Δπ¬πβ β β β
Hacking dockers :
`docker pull usertaken/archlinux-pentest-lxde` - [Arch Linux Penetration Tester](https://hub.docker.com/r/usertaken/archlinux-pentest-lxde/)
docker pull diogomonica/docker-bench-security - Docker Bench for Security`docker pull ismisepaul/securityshepherd` - [OWASP Security Shepherd](https://hub.docker.com/r/ismisepaul/securityshepherd/)
docker pull danmx/docker-owasp-webgoat - OWASP WebGoat Project docker image`docker-compose build && docker-compose up` - [OWASP NodeGoat](https://github.com/owasp/nodegoat#option-3---run-nodegoat-on-docker)
docker pull citizenstig/nowasp - OWASP Mutillidae II Web Pen-Test Practice Application`docker pull bkimminich/juice-shop` - [OWASP Juice Shop](https://github.com/bkimminich/juice-shop#docker-container--)
docker pull phocean/msf - Docker Metasploitβ β β Uππ»βΊπ«Δπ¬πβ β β β
GitHub
GitHub - OWASP/NodeGoat: The OWASP NodeGoat project provides an environment to learn how OWASP Top 10 security risks apply to webβ¦
The OWASP NodeGoat project provides an environment to learn how OWASP Top 10 security risks apply to web applications developed using Node.js and how to effectively address them. - OWASP/NodeGoat
Forwarded from UNDERCODE NEWS
Russian officials can turn to pirated and foreign antiviruses because of the freedom to procure.
#international
#international
Linux_for_beginners.pdf
175.6 KB
1GeneralremarksontheoperatingsystemUNIX/Linux
2Firststepsatthecomputer
3Filesystems
4Editingandprintingtextο¬les
Moreimportantcommands
5UNIX-shells
6Processadministration
7TheprogramminglanguageC++-anoverview
8Fortran90/95-anoverview
9Creatingexecutableprograms
2Firststepsatthecomputer
3Filesystems
4Editingandprintingtextο¬les
Moreimportantcommands
5UNIX-shells
6Processadministration
7TheprogramminglanguageC++-anoverview
8Fortran90/95-anoverview
9Creatingexecutableprograms
Forwarded from UNDERCODE NEWS
Forwarded from UNDERCODE NEWS
Explain in detail the edge computing layout strategy of the five major U.S. technology giants.
#international #Analytiques
#international #Analytiques
Forwarded from UNDERCODE NEWS
β β β Uππ»βΊπ«Δπ¬πβ β β β
π¦How to Install and Use Raspberry Pi Imager
First, update the APT package repository cache with the following command:
$ sudo apt update
The APT package repository cache should be updated.
To install Raspberry Pi Imager, run the following command:
$ sudo apt install rpi-imager
To confirm the installation, press Y and then press <Enter>.
The Raspberry Pi Imager is being installed. It may take a few seconds.
At this point, the Raspberry Pi Imager should be downloaded.
Once the Raspberry Pi Imager is installed, you can start it from Application Menu > Accessories > Imager as shown in the screenshot below.
Raspberry Pi Imager should be started.
Installing Raspberry Pi Imager on Windows 10:
First, visit the official downloads page of Raspberry Pi Imager from your favorite web browser.
Once the page loads, click on the Raspberry Pi Imager for Windows link as marked on your screen
Your browser should prompt you to save the installation file of Raspberry Pi Imager. Click on Save.
Once the download is finished, run the Raspberry Pi Imager installer.
To allow the installer on your computer, click on Yes.
The Raspberry Pi Imager installer should start. Click on Install.
The Raspberry Pi Imager is being installed.
At this point, the Raspberry Pi Imager should be installed. Click on Finish.
β β β Uππ»βΊπ«Δπ¬πβ β β β
π¦How to Install and Use Raspberry Pi Imager
First, update the APT package repository cache with the following command:
$ sudo apt update
The APT package repository cache should be updated.
To install Raspberry Pi Imager, run the following command:
$ sudo apt install rpi-imager
To confirm the installation, press Y and then press <Enter>.
The Raspberry Pi Imager is being installed. It may take a few seconds.
At this point, the Raspberry Pi Imager should be downloaded.
Once the Raspberry Pi Imager is installed, you can start it from Application Menu > Accessories > Imager as shown in the screenshot below.
Raspberry Pi Imager should be started.
Installing Raspberry Pi Imager on Windows 10:
First, visit the official downloads page of Raspberry Pi Imager from your favorite web browser.
Once the page loads, click on the Raspberry Pi Imager for Windows link as marked on your screen
Your browser should prompt you to save the installation file of Raspberry Pi Imager. Click on Save.
Once the download is finished, run the Raspberry Pi Imager installer.
To allow the installer on your computer, click on Yes.
The Raspberry Pi Imager installer should start. Click on Install.
The Raspberry Pi Imager is being installed.
At this point, the Raspberry Pi Imager should be installed. Click on Finish.
β β β Uππ»βΊπ«Δπ¬πβ β β β
Forwarded from UNDERCODE NEWS
Forwarded from UNDERCODE NEWS
β β β Uππ»βΊπ«Δπ¬πβ β β β
π¦ 4 ways to connect to SSH and SCP through a proxy server (jump) on Linux
SCP via proxy
Method 1: using scp with ProxyJump
In openssh package version 7.4p1-11 or newer, we can use the ProxyJump option to transfer files using a proxy server.
The scp command syntax for proxy file transfers is:
# scp -o "ProxyJump <User> @ <Proxy-Server>" <File-Name> <User> @ <Destination-Server>: <Destination-Path>
For instance:
# scp -o "ProxyJump user@10.23.100.70" dataFile.txt user@192.168.10.100: / tmp
user@10.23.100.70's password:
user@192.168.10.100's password:
dataFile.txt
Where my proxy is 10.23.100.70 and the target server is 192.168.10.100.
Method 2: using scp with ProxyCommand
SCP uses ssh as its main protocol and hence we can use ssh options along with scp commands.
Setting up SSH to make your life easier
The syntax for using the ProxyCommand option with the scp command is:
# scp -o "ProxyCommand ssh <user> @ <Proxy-Server> nc% h% p" <File-Name> <User @ <Destination-Server>: <Destination-Path>
Where:
% h will be replaced with the hostname to connect
% p will be replaced with port
When using the ProxyCommand parameter, make sure the nmap-ncat package is installed on the proxy that provides the nc command, otherwise the following error message will be displayed.
bash: nc: command not found
ssh_exchange_identification: Connection closed by remote host
lost connection
For instance:
# scp -o "ProxyCommand ssh user@10.23.100.70 nc% h% p" dataFile.txt root@192.168.10.100: / tmp
user@10.23.100.70's password:
root@192.168.10.100's password:
dataFile.txt 100% 5 0.0KB / s 00:00
Where my proxy is 10.23.100.70 and the target server is 192.168.10.100.
SSH through a proxy server
Method 1: pass ProxyCommand using ssh parameters
We can again use the ProxyCommand to ssh login to another server using a proxy server.
The syntax for SSH over a proxy will be as follows:
# ssh -o "ProxyCommand ssh user_name_on_proxy @ hostname_or_IP_of_proxy nc% h% p" user_name_on_server @ hostname_or_IP_of_server
Example: login as root user at 192.168.10.100 through proxy at 10.23.100.70 with proxy credentials for proxy_user
# ssh -o "ProxyCommand ssh proxy_user@10.23.100.70 nc% h% p" root@192.168.10.100
proxy_user@10.23.100.70's password:
root@192.168.10.100's password:
Last login: Tue Dec 24 10:40:33 2019 from 10.23.100.70
# ip al | grep eth0
2: eth0: <BROADCAST, MULTICAST, UP, LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
inet 192.168.10.100/24 ββbrd 192.168.1.255 scope global eth0
If the nc command is not installed on the proxy server, or you do not have proxy login credentials, but a proxy service such as squid is running on the proxy server that will accept SSH connections, you can use the following command.
Note that this method requires you to have the nc command installed on your local / client system.
# ssh -o "ProxyCommand nc --proxy hostname_or_IP_of_proxy: proxy_service_port --proxy-type http% h% p" user_name_on_server @ hostname_or_IP_of_server
For example, to log in as root on 192.168.10.100 through a proxy service listening on port 3128 on 10.23.100.70.
The proxy service does not require any credentials.
# ssh -o "ProxyCommand nc --proxy 10.23.100.70:3128 --proxy-type http% h% p" root@192.168.10.100
root@192.168.10.100's password:
Last login: Tue Dec 24 10:40:46 2019 from 10.23.100.70
# ip al | grep eth0
2: eth0: <BROADCAST, MULTICAST, UP, LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
inet 192.168.10.100/24 ββbrd 192.168.1.255 scope global eth0
Method 2: Using an ssh client config file
We discussed the SSH client config file in detail
π§ How to check OpenSSH client configuration
π§ How to use SSH configuration for each Linux host
So instead of providing all the options as input arguments for SSH, we can also use the SSH client config file.
π¦ 4 ways to connect to SSH and SCP through a proxy server (jump) on Linux
SCP via proxy
Method 1: using scp with ProxyJump
In openssh package version 7.4p1-11 or newer, we can use the ProxyJump option to transfer files using a proxy server.
The scp command syntax for proxy file transfers is:
# scp -o "ProxyJump <User> @ <Proxy-Server>" <File-Name> <User> @ <Destination-Server>: <Destination-Path>
For instance:
# scp -o "ProxyJump user@10.23.100.70" dataFile.txt user@192.168.10.100: / tmp
user@10.23.100.70's password:
user@192.168.10.100's password:
dataFile.txt
Where my proxy is 10.23.100.70 and the target server is 192.168.10.100.
Method 2: using scp with ProxyCommand
SCP uses ssh as its main protocol and hence we can use ssh options along with scp commands.
Setting up SSH to make your life easier
The syntax for using the ProxyCommand option with the scp command is:
# scp -o "ProxyCommand ssh <user> @ <Proxy-Server> nc% h% p" <File-Name> <User @ <Destination-Server>: <Destination-Path>
Where:
% h will be replaced with the hostname to connect
% p will be replaced with port
When using the ProxyCommand parameter, make sure the nmap-ncat package is installed on the proxy that provides the nc command, otherwise the following error message will be displayed.
bash: nc: command not found
ssh_exchange_identification: Connection closed by remote host
lost connection
For instance:
# scp -o "ProxyCommand ssh user@10.23.100.70 nc% h% p" dataFile.txt root@192.168.10.100: / tmp
user@10.23.100.70's password:
root@192.168.10.100's password:
dataFile.txt 100% 5 0.0KB / s 00:00
Where my proxy is 10.23.100.70 and the target server is 192.168.10.100.
SSH through a proxy server
Method 1: pass ProxyCommand using ssh parameters
We can again use the ProxyCommand to ssh login to another server using a proxy server.
The syntax for SSH over a proxy will be as follows:
# ssh -o "ProxyCommand ssh user_name_on_proxy @ hostname_or_IP_of_proxy nc% h% p" user_name_on_server @ hostname_or_IP_of_server
Example: login as root user at 192.168.10.100 through proxy at 10.23.100.70 with proxy credentials for proxy_user
# ssh -o "ProxyCommand ssh proxy_user@10.23.100.70 nc% h% p" root@192.168.10.100
proxy_user@10.23.100.70's password:
root@192.168.10.100's password:
Last login: Tue Dec 24 10:40:33 2019 from 10.23.100.70
# ip al | grep eth0
2: eth0: <BROADCAST, MULTICAST, UP, LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
inet 192.168.10.100/24 ββbrd 192.168.1.255 scope global eth0
If the nc command is not installed on the proxy server, or you do not have proxy login credentials, but a proxy service such as squid is running on the proxy server that will accept SSH connections, you can use the following command.
Note that this method requires you to have the nc command installed on your local / client system.
# ssh -o "ProxyCommand nc --proxy hostname_or_IP_of_proxy: proxy_service_port --proxy-type http% h% p" user_name_on_server @ hostname_or_IP_of_server
For example, to log in as root on 192.168.10.100 through a proxy service listening on port 3128 on 10.23.100.70.
The proxy service does not require any credentials.
# ssh -o "ProxyCommand nc --proxy 10.23.100.70:3128 --proxy-type http% h% p" root@192.168.10.100
root@192.168.10.100's password:
Last login: Tue Dec 24 10:40:46 2019 from 10.23.100.70
# ip al | grep eth0
2: eth0: <BROADCAST, MULTICAST, UP, LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
inet 192.168.10.100/24 ββbrd 192.168.1.255 scope global eth0
Method 2: Using an ssh client config file
We discussed the SSH client config file in detail
π§ How to check OpenSSH client configuration
π§ How to use SSH configuration for each Linux host
So instead of providing all the options as input arguments for SSH, we can also use the SSH client config file.
Edit the ~ / .ssh / config file as shown below:
# vim ~ / .ssh / config
...
Host <nickname>
HostName <hostname_of_server>
User <user_on_server>
ProxyCommand ssh <user_on_server> @ <proxy_server> nc% h% p
If this file already contains content, you will need to add the above to the end of the file.
Where:
<nickname>: Sets the alias for the target server.
<hostname_of_sever>: sets the real name of the remote server / host
<user_on_server>: the real user that exists on the target server
<proxy_server>: IP or hostname of the proxy server
% h will be replaced with the hostname to connect
% p will be replaced with port
Then you can use SSH with an additional verbose parameter to check the configuration
# ssh -vvv <target_server>
β β β Uππ»βΊπ«Δπ¬πβ β β β
# vim ~ / .ssh / config
...
Host <nickname>
HostName <hostname_of_server>
User <user_on_server>
ProxyCommand ssh <user_on_server> @ <proxy_server> nc% h% p
If this file already contains content, you will need to add the above to the end of the file.
Where:
<nickname>: Sets the alias for the target server.
<hostname_of_sever>: sets the real name of the remote server / host
<user_on_server>: the real user that exists on the target server
<proxy_server>: IP or hostname of the proxy server
% h will be replaced with the hostname to connect
% p will be replaced with port
Then you can use SSH with an additional verbose parameter to check the configuration
# ssh -vvv <target_server>
β β β Uππ»βΊπ«Δπ¬πβ β β β