Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
socktalk is a chat server and client developed using Python's socket programming. It affords real-time, multi-user interactions and integrates with OpenAI's GPT models to offer an AI-driven chatting experience.
select.select()
for real-time, concurrent message processing.For further details, visit the GitHub repository for socktalk.
To install "socktalk" from GitHub:
git clone https://github.com/mdkmk/socktalk
cd socktalk
python setup.py install
pip install socktalk
Set up the .env file in your working directory to configure AI behaviors and server/client settings without using command-line flags. Alternatively, you can use command-line flags to override .env file or default settings.
socktalk --ai
With flag override:
socktalk --ai --openai_api_key=YOUR_OPENAI_API_KEY_HERE --ai_mode2_active=False --ai_mode1_interval=3
socktalk --server
With flag override:
socktalk --server --server_ip=127.0.0.1 --server_port=1234
socktalk --client
With flag override:
socktalk --client --server_ip=127.0.0.1 --server_port=1234
socktalk --terminal
With flag override:
socktalk --terminal --server_ip=127.0.0.1 --server_port=1234
Below is an example .env file. Update the OpenAI chatgpt API key and ensure you have at least $5 credit on your OpenAI account. A valid OPENAI_API_KEY is required for AI functionality. The AI client has two modes which can be toggled on or off. AI response intervals, model, and content prompt are configurable. Full chat history can be sent to the API for context. If the remaining .env variables are not specified or called as a flag, defaults in the example below will be used.
OPENAI_API_KEY=YOUR_OPENAI_API_KEY_HERE
SERVER_IP=127.0.0.1
SERVER_PORT=1234
SEND_FULL_CHAT_HISTORY=True
AI_MODE1_ACTIVE=True
AI_MODE1_INTERVAL=1
AI_MODE1_MODEL=gpt-3.5-turbo
AI_MODE2_ACTIVE=True
AI_MODE2_INTERVAL=60
AI_MODE2_MODEL=gpt-3.5-turbo
AI_MODE2_CONTENT="Say something interesting from a random Wikipedia page and start your response with 'Did you know', but don't mention the source."
FAQs
Socket-based AI chat server and multi-user chat client
We found that socktalk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.