Do It by Code
54 subscribers
712 photos
99 videos
14 files
1.24K links
We uhhhhh... do things by coding them.
Download Telegram
TIL about ELIZA, a 1960s chatbot created by MIT professor Joseph Weizenbaum that simulated a psychotherapist.

[source, comments]

ELIZA wasn't actually "smart" in the way we think of AI today. It used a very simple pattern-matching system and didn't understand language or context at all. The program basically worked by:

1. Looking for specific keywords in user input
2. Applying simple transformation rules
3. Reflecting statements back as questions
4. Using a few pre-programmed responses when it couldn't match patterns

For example, if you said "I am feeling sad", ELIZA might respond "Why do you feel sad?" - simply taking your statement and turning it into a question. Or if you mentioned your mother, it would ask about your family.

The fascinating thing about ELIZA was not its technical sophistication (which was very basic), but rather how people *responded* to it. Even though it was using simple tricks, people projected meaning onto its responses and felt like they were having a real conversation. This is known as the "ELIZA effect" - where people attribute human-like understanding to computer programs.

Regarding the 2023 study you mentioned - while interesting, it's important to note that ELIZA only performed better in very specific circumstances and the study has been subject to some criticism regarding its methodology.
===
Model: Claude 3.5 Sonnet v2 (Balanced)
RegexChess
Playing Chess with 84,688 Regular Expressions
Article, Comments

Github: https://github.com/carlini/regex-chess

A 2-ply mini-max search chess engine in 84,688 regular expressions.
RegexChess is a complete chess engine that plays moves making regular expression transforms to a given board state. It implements a 2-ply minimax search algorithm and generates moves in about 5-10 seconds.
1
Portspoof

Portspoof has a huge database of dynamic service signatures, that will be used to generate fake banners and fool scanners.
https://github.com/drk1wi/portspoof

Scanning software usually tries to determine a service version that is running on an open port. Portspoof will respond to every service probe with a valid service signature, that is dynamically generated based on a service signature regular expression database.

As a result an attacker will not be able to determine which port numbers your system is truly using. All 65535 TCP ports are always open.


#networking #security #cpp
Do It by Code
Portspoof Portspoof has a huge database of dynamic service signatures, that will be used to generate fake banners and fool scanners. https://github.com/drk1wi/portspoof Scanning software usually tries to determine a service version that is running on an…
btw list of ports and their usages which I took it from README file of this repo:

PORT STATE SERVICE VERSION
7/tcp open http Milestone XProtect video surveillance http interface (tu-ka)
9/tcp open ntop-http Ntop web interface 1ey (Q)
13/tcp open ftp VxWorks ftpd 6.a
21/tcp open http Grandstream VoIP phone http config 6193206
22/tcp open http Cherokee httpd X
23/tcp open ftp MacOS X Server ftpd (MacOS X Server 790751705)
25/tcp open smtp?
26/tcp open http ZNC IRC bouncer http config 0.097 or later
37/tcp open finger NetBSD fingerd
53/tcp open ftp Rumpus ftpd
79/tcp open http Web e (Netscreen administrative web server)
80/tcp open http BitTornado tracker dgpX
81/tcp open hosts2-ns?
88/tcp open http 3Com OfficeConnect Firewall http config
106/tcp open pop3pw?
110/tcp open ipp Virata-EmWeb nbF (HP Laserjet 4200 TN http config)
111/tcp open imap Dovecot imapd
113/tcp open smtp Xserve smtpd
119/tcp open nntp?
135/tcp open http netTALK Duo http config
139/tcp open http Oversee Turing httpd kC (domain parking)
143/tcp open crestron-control TiVo DVR Crestron control server
144/tcp open http Ares Galaxy P2P httpd 7942927
179/tcp open http WMI ViH (3Com 5500G-EI switch http config)
199/tcp open smux?
389/tcp open http-proxy ziproxy http proxy
427/tcp open vnc (protocol 3)
443/tcp open https?
444/tcp open snpp?
445/tcp open http Pogoplug HBHTTP QpwKdZQ
465/tcp open http Gordian httpd 322410 (IQinVision IQeye3 webcam rtspd)
513/tcp open login?
514/tcp open finger ffingerd
515/tcp open pop3 Eudora Internet Mail Server X pop3d 4918451
543/tcp open ftp Dell Laser Printer z printer ftpd k
544/tcp open ftp Solaris ftpd
548/tcp open http Medusa httpd Elhmq (Sophos Anti-Virus Home http config)
554/tcp open rtsp?
587/tcp open http-proxy Pound http proxy
631/tcp open efi-webtools EFI Fiery WebTools communication
646/tcp open ldp?
873/tcp open rsync?
990/tcp open http OpenWrt uHTTPd
993/tcp open ftp Konica Minolta bizhub printer ftpd
995/tcp open pop3s?
1025/tcp open sip-proxy Comdasys SIP Server D
1026/tcp open LSA-or-nterm?
1027/tcp open IIS?
1028/tcp open rfidquery Mercury3 RFID Query protocol
1029/tcp open smtp-proxy ESET NOD32 anti-virus smtp proxy
1110/tcp open http qhttpd
1433/tcp open http ControlByWeb WebRelay-Quad http admin
1720/tcp open H.323/Q.931?
1723/tcp open pptp?
1755/tcp open http Siemens Simatic HMI MiniWeb httpd
1900/tcp open tunnelvision Tunnel Vision VPN info 69853
2000/tcp open telnet Patton SmartNode 4638 VoIP adapter telnetd
2001/tcp open dc?
2049/tcp open nfs?
2121/tcp open http Bosch Divar Security Systems http config
2717/tcp open rtsp Darwin Streaming Server 104621400
3000/tcp open pop3 Solid pop3d
3128/tcp open irc-proxy muh irc proxy
3306/tcp open ident KVIrc fake identd
3389/tcp open ms-wbt-server?
3986/tcp open mapper-ws_ethd?
4899/tcp open printer QMC DeskLaser printer (Status o)
5000/tcp open http D-Link DSL-eTjM http config
5009/tcp open airport-admin?
5051/tcp open ssh (protocol 325257)
5060/tcp open http apt-cache/apt-proxy httpd
5101/tcp open ftp OKI BVdqeC-ykAA VoIP adapter ftpd kHttKI
5190/tcp open http Conexant-EmWeb JqlM (Intertex IX68 WAP http config; SIPGT TyXT)
5357/tcp open wsdapi?
5432/tcp open postgresql?
5631/tcp open irc ircu ircd
Do It by Code
Portspoof Portspoof has a huge database of dynamic service signatures, that will be used to generate fake banners and fool scanners. https://github.com/drk1wi/portspoof Scanning software usually tries to determine a service version that is running on an…
5666/tcp open litecoin-jsonrpc Litecoin JSON-RPC f_
5800/tcp open smtp Lotus Domino smtpd rT Beta y
5900/tcp open ftp
6000/tcp open http httpd.js (Songbird WebRemote)
6001/tcp open daap mt-daapd DAAP TGeiZA
6646/tcp open unknown
7070/tcp open athinfod Athena athinfod
8000/tcp open amanda Amanda backup system index server (broken: libsunmath.so.1 not found)
8008/tcp open http?
8009/tcp open ajp13?
8080/tcp open http D-Link DGL-4300 WAP http config
8081/tcp open http fec ysp (Funkwerk bintec R232B router; .h.K...z)
8443/tcp open smtp
8888/tcp open smtp OpenVMS smtpd uwcDNI (OpenVMS RVqcGIr; Alpha)
9100/tcp open jetdirect?
9999/tcp open http Embedded HTTPD 3BOzejtHW (Netgear MRd WAP http config; j)
10000/tcp open http MikroTik router http config (RouterOS 0982808)
32768/tcp open filenet-tms?
49152/tcp open unknown
49153/tcp open http ASSP Anti-Spam Proxy httpd XLgR(?)?
49154/tcp open http Samsung AllShare httpd
49155/tcp open ftp Synology DiskStation NAS ftpd
49156/tcp open aspi ASPI server 837305
49157/tcp open sip AVM FRITZ!Box |
A simple terminal UI for both docker and docker-compose, written in Go.
https://github.com/jesseduffield/lazydocker

#docker #tui #go
A playable Tetris game inside of a PDF file (you need to open it with Chrome or a web browser which has javascript enabled)

https://th0mas.nl/downloads/pdftris.pdf
afrog
A Security Tool for Bug Bounty, Pentest and Red Teaming, written in Go.
https://github.com/zan8in/afrog/

afrog is a high-performance vulnerability scanner that is fast and stable. It supports user-defined PoC and comes with several built-in types, such as CVE, CNVD, default passwords, information disclosure, fingerprint identification, unauthorized access, arbitrary file reading, and command execution. With afrog, network security professionals can quickly validate and remediate vulnerabilities, which helps to enhance their security defense capabilities.


#penetration_testing #bug_bounty #vulnerability_scanner
#go
Language:
py


Code:
print(hash(-1) == hash(-2))
print(hash(-1))


Output:
True
-2