┌──(root㉿kali)-[~] └─# nc 192.168.56.106 6667 :irc.local NOTICE * :*** Looking up your hostname... NICK kali_pentester :irc.local NOTICE * :*** Could not resolve your hostname: Request timed out; using your IP address (192.168.56.103) instead.
USER kali 0 * :Kali Pentester :irc.local 001 kali_pentester :Welcome to the Localnet IRC Network kali_pentester!kali@192.168.56.103 :irc.local 002 kali_pentester :Your host is irc.local, running version InspIRCd-3 :irc.local 003 kali_pentester :This server was created 09:36:52 May 27 2025 :irc.local 004 kali_pentester irc.local InspIRCd-3 iosw biklmnopstv :bklov :irc.local 005 kali_pentester AWAYLEN=200 CASEMAPPING=rfc1459 CHANLIMIT=#:20 CHANMODES=b,k,l,imnpst CHANNELLEN=64 CHANTYPES=# ELIST=CMNTU HOSTLEN=64 KEYLEN=32 KICKLEN=255 LINELEN=512 MAXLIST=b:100 :are supported by this server :irc.local 005 kali_pentester MAXTARGETS=20 MODES=20 NAMELEN=128 NETWORK=Localnet NICKLEN=30 PREFIX=(ov)@+ SAFELIST STATUSMSG=@+ TOPICLEN=307 USERLEN=10 USERMODES=,,s,iow WHOX :are supported by this server :irc.local 251 kali_pentester :There are 0 users and 0 invisible on 1 servers :irc.local 253 kali_pentester 1 :unknown connections :irc.local 254 kali_pentester 0 :channels formed :irc.local 255 kali_pentester :I have 0 clients and 0 servers :irc.local 265 kali_pentester :Current local users: 0 Max: 1 :irc.local 266 kali_pentester :Current global users: 0 Max: 1 :irc.local 375 kali_pentester :irc.local message of the day :irc.local 372 kali_pentester : ************************************************** :irc.local 372 kali_pentester : * H E L L O * :irc.local 372 kali_pentester : * This is a private irc server. Please contact * :irc.local 372 kali_pentester : * the admin of the server for any questions or * :irc.local 372 kali_pentester : * issues ShadowSec directory. * :irc.local 372 kali_pentester : ************************************************** :irc.local 372 kali_pentester : * The software was provided as a package of * :irc.local 372 kali_pentester : * Debian GNU/Linux <https://www.debian.org/>. * :irc.local 372 kali_pentester : * However, Debian has no control over this * :irc.local 372 kali_pentester : * server. * :irc.local 372 kali_pentester : ************************************************** :irc.local 372 kali_pentester : (The sysadmin possibly wants to edit </etc/inspircd/inspircd.motd>) :irc.local 376 kali_pentester :End of message of the day. PING :irc.local ERROR :Closing link: (kali@192.168.56.103) [Ping timeout: 120 seconds]
│03:45:07 ll104567 | 2 │ │03:45:08 ll104567 | 1 │ │03:45:08 ll104567 | 3 │ │03:45:48 @admin | My friends and I are chatting on it, but we all follow the formatting requirements. Finally, we need to:) End
得知发送的消息要以:)结尾
03:48:44 ll104567 | 111:) │ │03:48:48 @admin | My friends and I are chatting on it, but we all follow the formatting requirements. Finally, we need to:) End
但是在频道中聊天没有什么用我们去找admin私聊
/query admin
最后经过不断尝试才发现在#chan1发消息
然后admin私聊回复你……
我们发送数字会给我们返回一下符号字母什么的很明显是ASCII码
可以执行命令
直接弹shell
shell很不稳定拿到之后第一时间稳定shell
pycrtlake@PyCrt:~$ sudo -l Matching Defaults entries for pycrtlake on PyCrt: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
User pycrtlake may run the following commands on PyCrt: (ALL) NOPASSWD: /usr/bin/gtkwave
gtkwave命令执行
pycrtlake@PyCrt:~$ sudo gtkwave -h \Could not initialize GTK! Is DISPLAY env var/xhost set?
-n, --nocli=DIRPATH use file requester for dumpfile name -f, --dump=FILE specify dumpfile name -F, --fastload generate/use VCD recoder fastload files -o, --optimize optimize VCD to FST -a, --save=FILE specify savefile name -A, --autosavename assume savefile is suffix modified dumpfile name -r, --rcfile=FILE specify override .rcfile name -d, --defaultskip if missing .rcfile, do not use useful defaults -D, --dualid=WHICH specify multisession identifier -l, --logfile=FILE specify simulation logfile name for time values -s, --start=TIME specify start time for LXT2/VZT block skip -e, --end=TIME specify end time for LXT2/VZT block skip -t, --stems=FILE specify stems file for source code annotation -c, --cpu=NUMCPUS specify number of CPUs for parallelizable ops -N, --nowm disable window manager for most windows -M, --nomenus do not render menubar (for making applets) -S, --script=FILE specify Tcl command script file for execution -T, --tcl_init=FILE specify Tcl command script file to be loaded on startup -W, --wish enable Tcl command line on stdio -R, --repscript=FILE specify timer-driven Tcl command script file -P, --repperiod=VALUE specify repscript period in msec (default: 500) -X, --xid=XID specify XID of window for GtkPlug to connect to -1, --rpcid=RPCID specify RPCID of GConf session -2, --chdir=DIR specify new current working directory -3, --restore restore previous session -4, --rcvar specify single rc variable values individually -5, --sstexclude specify sst exclusion filter filename -I, --interactive interactive VCD mode (filename is shared mem ID) -C, --comphier use compressed hierarchy names (slower) -g, --giga use gigabyte mempacking when recoding (slower) -L, --legacy use legacy VCD mode rather than the VCD recoder -v, --vcd use stdin as a VCD dumpfile -O, --output=FILE specify filename for stdout/stderr redirect -z, --slider-zoom enable horizontal slider stretch zoom -V, --version display version banner then exit -h, --help display this help then exit -x, --exit exit after loading trace (for loader benchmarks)
VCD files and save files may be compressed with zip or gzip. GHW files may be compressed with gzip or bzip2. Other formats must remain uncompressed due to their non-linear access. Note that DUMPFILE is optional if the --dump or --nocli options are specified. SAVEFILE and RCFILE are always optional.