lnd <0.15.2 exploit #28

Merged
tonygiorgio merged 5 commits from exploit-lnd into master 2 months ago
Owner
There is no content yet.
tonygiorgio added 1 commit 2 months ago
benthecarman reviewed 2 months ago
let control_block = spend_info
.control_block(&(script.clone(), LeafVersion::TapScript))
.unwrap();
// witness is control block followed by spending script

my comment was wrong, this is reversed, can be witness is spending script followed by control block

if you want to be really verbose can link BIP 341

my comment was wrong, this is reversed, can be `witness is spending script followed by control block` if you want to be really verbose can link BIP 341
tonygiorgio marked this conversation as resolved
tonygiorgio added 1 commit 2 months ago
benthecarman reviewed 2 months ago
)
.unwrap();
let mut script_builder = Builder::new();

A cleaner and more functional way to do this would be


    let script_builder = (0..25).into_iter().fold(Builder::new(), |b, _| {
        b.push_slice(&vec![1; 520]).push_opcode(opcodes::all::OP_DROP)
    });
    
A cleaner and more functional way to do this would be ```rust let script_builder = (0..25).into_iter().fold(Builder::new(), |b, _| { b.push_slice(&vec![1; 520]).push_opcode(opcodes::all::OP_DROP) }); ```
tonygiorgio marked this conversation as resolved
tonygiorgio added 1 commit 2 months ago
tonygiorgio added 1 commit 2 months ago
tonygiorgio force-pushed exploit-lnd from f9cbb2ce40 to 4aa671f661 2 months ago
tonygiorgio added 1 commit 2 months ago
tonygiorgio changed title from WIP: lnd <0.15.2 exploit to lnd <0.15.2 exploit 2 months ago
tonygiorgio merged commit bc06769b6b into master 2 months ago
tonygiorgio deleted branch exploit-lnd 2 months ago
The pull request has been merged as bc06769b6b.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: BitcoinDevShop/LNsploit#28
Loading…
There is no content yet.