Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2023, 14:39
blue_devil's Avatar
blue_devil blue_devil is offline
Family
 
Join Date: Dec 2011
Location: Observable Universe
Posts: 193
Rept. Given: 27
Rept. Rcvd 40 Times in 15 Posts
Thanks Given: 146
Thanks Rcvd at 240 Times in 82 Posts
blue_devil Reputation: 40
ChatGPT from your command prompt: llm

A CLI utility and Python library for interacting with Large Language Models, both via remote APIs and models that can be installed and run on your own machine.

REPO:
Code:
https://github.com/simonw/llm
DOCS:
Code:
https://llm.datasette.io/en/stable/
INSTALL:

Code:
pip install llm
or
Code:
python -m pip install llm
USAGE:
Obtain a chatgpt/openai API key from their site. You need to register to openai. When you set your api to llm you can use chatgpt from commmand prompt:

Code:
# Paste your OpenAI API key into this
llm keys set openai

# Run a prompt
llm "Ten fun names for a pet pelican"

# Run a system prompt against a file
cat myfile.py | llm -s "Explain this code"
My experience after setting open ai api:
Code:
$ llm "Ten fun names for a pet pelican"
Error: You exceeded your current quota, please check your plan and billing details.

Last edited by blue_devil; 11-09-2023 at 14:39. Reason: typo
Reply With Quote
  #2  
Old 11-11-2023, 08:41
chants chants is offline
VIP
 
Join Date: Jul 2016
Posts: 685
Rept. Given: 28
Rept. Rcvd 48 Times in 30 Posts
Thanks Given: 633
Thanks Rcvd at 1,031 Times in 462 Posts
chants Reputation: 48
Anything similar exists for DALL-E or Copilot or services providing images or code rather than text?

An amazing IDA or x64dbg plug-in would be one which would explain the high level purpose of a function. That would be really neat. Or would find the license check routine, etc.
Reply With Quote
  #3  
Old 11-13-2023, 19:01
blue_devil's Avatar
blue_devil blue_devil is offline
Family
 
Join Date: Dec 2011
Location: Observable Universe
Posts: 193
Rept. Given: 27
Rept. Rcvd 40 Times in 15 Posts
Thanks Given: 146
Thanks Rcvd at 240 Times in 82 Posts
blue_devil Reputation: 40
Quote:
Originally Posted by chants View Post
Anything similar exists for DALL-E or Copilot or services providing images or code rather than text?

An amazing IDA or x64dbg plug-in would be one which would explain the high level purpose of a function. That would be really neat. Or would find the license check routine, etc.
Gepetto: IDA plugin which queries OpenAI's gpt-3.5-turbo language model to speed up reverse-engineering
Code:
https://github.com/JusticeRage/Gepetto
VulChatGPT: Use IDA PRO HexRays decompiler with OpenAI(ChatGPT) to find possible vulnerabilities in binaries
Code:
https://github.com/ke0z/VulChatGPT
I'am using both. IMO `VulChatGPT` is better.

Are those what you are asking? @chants
Reply With Quote
The Following 2 Users Say Thank You to blue_devil For This Useful Post:
chants (11-14-2023), zerotimer (11-14-2023)
  #4  
Old 11-14-2023, 03:59
chants chants is offline
VIP
 
Join Date: Jul 2016
Posts: 685
Rept. Given: 28
Rept. Rcvd 48 Times in 30 Posts
Thanks Given: 633
Thanks Rcvd at 1,031 Times in 462 Posts
chants Reputation: 48
Yes exactly those both look quite useful to save time. The next couple years will be interesting as LLMs are improved and more powerful and more plug-ins like this are made.
Reply With Quote
  #5  
Old 11-14-2023, 04:38
zerotimer zerotimer is offline
Friend
 
Join Date: Sep 2023
Posts: 13
Rept. Given: 9
Rept. Rcvd 4 Times in 1 Post
Thanks Given: 18
Thanks Rcvd at 9 Times in 4 Posts
zerotimer Reputation: 4
Quote:
Originally Posted by chants View Post
Yes exactly those both look quite useful to save time. The next couple years will be interesting as LLMs are improved and more powerful and more plug-ins like this are made.
It is pretty obvious that Vector35 people and Hex-Rays people will make improvements on decompiling using LLMs. I think they still use their static decompilers on their cloud services, but next years they replace them with LLMs.

I also wonder what Ghidra people will do about this!
Reply With Quote
Reply

Tags
chatgpt, openai

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT +8. The time now is 00:12.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2023 )