write down,forget
adidas eqt support ultra primeknit vintage white coming soon adidas eqt support ultra boost primeknit adidas eqt support ultra pk vintage white available now adidas eqt support ultra primeknit vintage white sz adidas eqt support ultra boost primeknit adidas eqt adv support primeknit adidas eqt support ultra boost turbo red white adidas eqt support ultra boost turbo red white adidas eqt support ultra boost turbo red adidas eqt support ultra whiteturbo adidas eqt support ultra boost off white more images adidas eqt support ultra boost white tactile green adidas eqt support ultra boost beige adidas eqt support ultra boost beige adidas eqt support refined camo drop adidas eqt support refined camo drop adidas eqt support refined running whitecamo adidas eqt support 93 primeknit og colorway ba7506 adidas eqt running support 93 adidas eqt support 93
标签 Tag : cygwin

cygwin下netcat编译与使用

<Category: Linux> Comments Off on cygwin下netcat编译与使用

cd /tmp
wget http://ftp.de.debian.org/debian/pool/main/n/netcat/netcat_1.10.orig.tar.gz
wget http://ftp.de.debian.org/debian/pool/main/n/netcat/netcat_1.10-38.diff.gz

tar vxzf netcat_1.10.orig.tar.gz
cd netcat-1.10.orig/

zcat ../netcat_1.10-38.diff.gz | patch -p1

//Vi Makefile line 11
DFLAGS = -DDEBIAN_VERSION='”1.10-38″‘ -DGAPING_SECURITY_HOLE -DIP_TOS -DTELNET

mv nc.exe /bin/
mv nc.1 /usr/share/man/man1/

nc -h

$ nc -h
[v1.10-38]
connect to somewhere: nc [-options] hostname port[s] [ports] …
listen for inbound: nc -l -p port [-options] [hostname] [port]
options:
-c shell commands as `-e’; use /bin/sh to exec [dangerous!!]
-e filename program to exec after connect [dangerous!!]
-b allow broadcasts
-g gateway source-routing hop point[s], up to 8
-G num source-routing pointer: 4, 8, 12, …
-h this cruft
-i secs delay interval for lines sent, ports scanned
-k set keepalive option on socket
-l listen mode, for inbound connects
-n numeric-only IP addresses, no DNS
-o file hex dump of traffic
-p port local port number
-r randomize local and remote ports
-q secs quit after EOF on stdin and delay of secs
-s addr local source address
-T tos set Type Of Service
-t answer TELNET negotiation
-u UDP mode
-v verbose [use twice to be more verbose]
-w secs timeout for connects and final net reads
-z zero-I/O mode [used for scanning]
port numbers can be individual or ranges: lo-hi [inclusive];
hyphens in port names must be backslash escaped (e.g. ‘ftp\-data’).

TEST

//连接指定端口
nc -nvv 192.168.x.x 80

//端口转发,抓包
nc -l -p 1234 -c ‘tee 1234.txt | nc 192.168.x.x 22 | tee ssh.txt’
putty logon with localhost port 1234

//端口扫描
nc -v -n -z -w1 192.168.x.x 1-65535
nc -nvv -w2 -z 192.168.x.x 80-445

//本地监听端口,简单实现双机聊天
HOSTA: nc -l -p 800 或 nc -l -p 800

本文来自: cygwin下netcat编译与使用

sudo on cygwin

<Category: Linux> Comments Off on sudo on cygwin

有些时候必须要以root的身份执行,但是在cygwin下怎么做呢?

windows Cygwin 下使用root权限的方法,sudo 方法
修改C:\cygwin\etc\profile文件

将对应的windows用户名的那条记录,将对于的记录
medcl:unused:1001:513:Medcl’,U-BS-MEDCL\medcl,S-1-5-21-1781803582-33251031-1424578719-1001:/home/medcl:/bin/bash
修改成如下,即成
root:unused:1001:513:Medcl’,U-BS-MEDCL\medcl,S-1-5-21-1781803582-33251031-1424578719-1001:/home/root:/bin/bash

注意,切换了目录和用户账户,之前的用户下的配置都没了哦,如ssh、svn账户信息等

本文来自: sudo on cygwin