How to: SCP command

上传文件 scp source_file_name username@destination_host:destination_folder Verbose scp -v somefile.txt root@192.x.x.x:. Estimated Time scp -p somefile.txt root@192.x.x.x:. Use specific port scp -P 2249 somefile.txt root@192.x.x.x:. // Example scp -P 2222 ./debugserver root@…

ssh-copy-id

Installation brew install ssh-copy-id Upload public key $ ssh-copy-id -i <your_id_name> <username>@<server_ip> ## Enter your password now. $ ssh -i <your_id_name> <username>@<server_ip> Example: $ ssh-copy-id -i id_rsa_bandwagon.pub abc@8.8.8.…

iptables

0x01. Overview 表 Tables iptables contains: raw 用于配置数据包,raw 中的数据包不会被系统跟踪。 filter 是用于存放所有与防火墙相关操作的默认表。 nat 用于 网络地址转换(例如:端口转发)。(Network address translation) mangle 用于对特定数据包的修改(参考 损坏数据包)。 security 用于 强制访问控制 网络规则(例如: SELinux -- 详细信息参考 该文章)。 大部分情况仅需要使用 filter 和 nat。 链 Chains 表由链组成,链是一些按顺序排列的规则的列表. filter table: INPUT OUTPUT FORWARD nat table: PREROUTING POSTROUTING…

Linux Commands for Penetration Testers

Linux Commands for Penetration Testers@import ''https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.2.0/katex.min.css'';code{color:#c7254e;background-color:#f9f2f4;border-radius:4px}code,kbd{padding:2px 4px}kbd{color:#fff;background-color:#333;border-radius:3px;box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{…

Linux networking command cheatsheet

LIST OF BASIC NETWORKING COMMANDS IN LINUX I used FreeBSD in the computer networking course but the UNIX commands should work the same in Linux also. CONNECTIVITY: ping <host> —- sends an ICMP echo message (one packet) to a host. This may go continually until you hit Control-C.…

apt-get

APT Overview APT (Advanced Package Tool) two main tools: apt-get apt-cache Update the package database $ sudo apt-get update 运行该command后,会有一系列的lines出现。 hit: there is no change in package version ign: the package is being ignored. get: There is a new version available. It will download the information not the package itself.…