投稿時間:2022-09-26 20:29:56 RSSフィード2022-09-26 20:00 分まとめ(35件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] ホンダ、「N-WGN」をマイナーモデルチェンジ、特別仕様車「STYLE+ BITTER」と同時発売 https://www.itmedia.co.jp/business/articles/2209/26/news185.html itmedia 2022-09-26 19:39:00
IT ITmedia 総合記事一覧 [ITmedia News] 新人作のゲームに「神ゲー」の声 「コロナ前のノウハウ使えなかった」のになぜ? バンナム新卒研修の工夫 https://www.itmedia.co.jp/news/articles/2209/26/news190.html itmedia 2022-09-26 19:30:00
python Pythonタグが付けられた新着投稿 - Qiita python – inputがある限りループする https://qiita.com/YumaInaura/items/77067701b14033d0f185 kelseprintxwhilelineinput 2022-09-26 19:27:31
python Pythonタグが付けられた新着投稿 - Qiita 「”すぐ” このデータまとめて欲しい」に ”すぐ”に超簡単に応えられる Python の・・・(Lux編) https://qiita.com/hima2b4/items/6afc57c130eb45a3ee21 解析 2022-09-26 19:24:00
python Pythonタグが付けられた新着投稿 - Qiita python で指定回数ループする例: for i in range(10) https://qiita.com/YumaInaura/items/f9f5122fc022f40866e1 foriinrange 2022-09-26 19:09:21
js JavaScriptタグが付けられた新着投稿 - Qiita Next.jsで画像とメタデータとCSS ModuleとGlobal Stylesを扱う https://qiita.com/YSasago/items/a7b280726d643b366b9e cssmodule 2022-09-26 19:51:41
js JavaScriptタグが付けられた新着投稿 - Qiita 【Deno】「やっぱnpmをサポートするわ」 → 10日後「サポートしたわ」 https://qiita.com/rana_kualu/items/7eb1acff8f66948b04eb 高速 2022-09-26 19:45:28
Linux CentOSタグが付けられた新着投稿 - Qiita df https://qiita.com/x5dwimpejx/items/ea6b48fe459e43e10d09 duhvarsorthr 2022-09-26 19:18:34
Ruby Railsタグが付けられた新着投稿 - Qiita 【Rails】データベースのテーブルを新設し,カラムを編集する https://qiita.com/takecn/items/dea0105df2075b204399 rubyrails 2022-09-26 19:41:43
技術ブログ Developers.IO Amazon FSx for NetApp ONTAPのストレージキャパシティ以上のサイズのボリュームを作成すると使用量が大きく見える件 https://dev.classmethod.jp/articles/amazon-fsx-for-netapp-ontap-volume-creation-with-size-larger-than-storage-capacity-appears-to-use-large-amount-of-space/ amazonfsxfornetappontap 2022-09-26 10:29:09
海外TECH MakeUseOf 6 Reasons You Should Purchase AppleCare+ For Your Mac https://www.makeuseof.com/reasons-to-purchase-applecare-for-mac/ applecare 2022-09-26 10:15:14
海外TECH DEV Community Learn Rust by implementing a SHA-1 hash cracker https://dev.to/sylvainkerkour/learn-rust-by-implementing-a-sha-1-hash-cracker-3ip1 Learn Rust by implementing a SHA hash crackerOriginally published on my blog The moment has come to get your hands dirty let s write your first Rust program As for all the code examples in this course you can find the complete code in the accompanying Git repository cargo new sha crackerWill create a new project in the folder sha cracker Note that by default cargo will create a binary application project You can create a library project with the lib flag cargo new my lib lib SHA is a hash function used by a lot of old websites to store the passwords of the users In theory a hashed password can t be recovered from its hash Thus by storing the hash in their database a website can assert that a given user has the knowledge of its password without storing the password in cleartext by comparing the hashes So if the website s database is breached there is no way to recover the passwords and access the users data Reality is quite different Let s imagine a scenario where we just breached such a website and we now want to recover the credentials of the users in order to gain access to their accounts This is where a hash cracker is useful A hash cracker is a program that will try many different hashes in order to find the original password This is why when creating a website you should use a hash function specifically designed for this use case such as argonid which require way more resource to bruteforce than SHA for example This simple program will help us learn Rust s fundamentals How to use Command Line Interface CLI argumentsHow to read filesHow to use an external libraryBasic error handlingResources managementThis post is an excerpt from my book Black Hat RustLike in almost all programming languages the entrypoint of a Rust program is its main function ch sha cracker src main rsfn main Reading command line arguments is as easy as ch sha cracker src main rsuse std env fn main let args Vec lt String gt env args collect Where std env imports the module env from the standard library and env args calls the args function from this module and returns an iterator which can be collected into a Vec lt String gt a Vector of String objects A Vector is an array type that can be resized It is then easy to check for the number of arguments and display an error message if it does not match what is expected ch sha cracker src main rsuse std env fn main let args Vec lt String gt env args collect if args len println Usage println sha cracker lt wordlist txt gt lt sha hash gt return As you may have noticed the syntax of println with an exclamation mark is strange Indeed println is not a classic function but a macro As it s a complex topic I redirect you to the dedicated chapter of the Book println is a macro and not a function because Rust doesn t support yet variadic generics It has the advantage of being compile time evaluated and checked and thus prevent vulnerabilities such as format string vulnerabilities Error handlingHow should our program behave when encountering an error And how to inform the user of it This is what we call error handling Among the dozen programming languages that I have experience with Rust is without any doubts my favorite one regarding error handling due to its explicitness safety and conciseness For our simple program we will Box errors we will allow our program to return any type that implements the std error Error trait What is a trait More on that later ch sha cracker src main rsuse std env error Error const SHA HEX STRING LENGTH usize fn main gt Result lt Box lt dyn Error gt gt let args Vec lt String gt env args collect if args len println Usage println sha cracker lt wordlist txt gt lt sha hash gt return Ok let hash to crack args trim if hash to crack len SHA HEX STRING LENGTH return Err sha hash is not valid into Ok Reading filesAs it takes too much time to test all possible combinations of letters numbers and special characters we need to reduce the number of SHA hashes generated For that we use a special kind of dictionary known as a wordlist which contains the most common password found in breached websites Reading a file in Rust can be achieved with the standard library like that ch sha cracker src main rsuse std env error Error fs File io BufRead BufReader const SHA HEX STRING LENGTH usize fn main gt Result lt Box lt dyn Error gt gt let args Vec lt String gt env args collect if args len println Usage println sha cracker lt wordlist txt gt lt sha hash gt return Ok let hash to crack args trim if hash to crack len SHA HEX STRING LENGTH return Err sha hash is not valid into let wordlist file File open amp args let reader BufReader new amp wordlist file for line in reader lines let line line trim to string println line Ok CratesNow that the basic structure of our program is in place we need to actually compute the SHA hashes Fortunately for us some talented developers have already developed this complex piece of code and shared it online ready to use in the form of an external library In Rust we call those libraries or packages crates They can be browsed online at They are managed with cargo Rust s package manager Before using a crate in our program we need to declare its version in Cargo s manifest file Cargo toml ch sha cracker Cargo toml package name sha cracker version authors Sylvain Kerkour See more keys and their definitions at dependencies sha hex We can then import it in our SHA cracker ch sha cracker src main rsuse sha Digest use std env error Error fs File io BufRead BufReader const SHA HEX STRING LENGTH usize fn main gt Result lt Box lt dyn Error gt gt let args Vec lt String gt env args collect if args len println Usage println sha cracker lt wordlist txt gt lt sha hash gt return Ok let hash to crack args trim if hash to crack len SHA HEX STRING LENGTH return Err sha hash is not valid into let wordlist file File open amp args let reader BufReader new amp wordlist file for line in reader lines let line line let common password line trim if hash to crack amp hex encode sha Sha digest common password as bytes println Password found amp common password return Ok println password not found in wordlist Ok Hourray Our first program is now complete We can test it by running cargo run wordlist txt cacefbbbbcbcedcbPlease note that in a real world scenario we may want to use optimized hash crackers such as hashcat or John the Ripper which among other things may use the GPU to significantly speed up the cracking Another point would be to first load the wordlist in memory before performing the computations This post is an excerpt from my book Black Hat Rust RAIIA detail may have caught the attention of the most meticulous of you we opened the wordlist file but we never closed it This pattern or feature is called RAII Resource Acquisition Is Initialization In Rust variables not only represent parts of the memory of the computer they may also own resources Whenever an object goes out of scope its destructor is called and the owned resources are freed Thus you don t need to call a close method on files or sockets When the variable is dropped goes out of scope the file or socket will be automagically closed In our case the wordlist file variable owns the file and has the main function as scope Whenever the main function exits either due to an error or an early return the owned file is closed Magic isn t it Thanks to this it s very rare to leak resources in Rust Ok You might also have noticed that the last line of our main function does not contain the return keyword This is because Rust is an expression oriented language Expressions evaluate to a value Their opposites statements are instructions that do something and end with a semicolon So if our program reaches the last line of the main function the main function will evaluate to Ok which means success everything went according to the plan An equivalent would have been return Ok but not Ok Because here Ok is a statement due to the semicolon and the main function no longer evaluates to its expected return type Result Want to learn more about Rust applied cryptography and offensive security Take a look at my book Black Hat Rust 2022-09-26 10:23:10
Apple AppleInsider - Frontpage News India starts iPhone 14 production, confirms Apple https://appleinsider.com/articles/22/09/26/india-starts-iphone-14-production-confirms-apple?utm_medium=rss India starts iPhone production confirms AppleApple has announced that as expected facilities in India are now producing part of the new iPhone range for local sale As previously predicted by analyst Ming Chi Kuo Foxconn s plant in India is now confirmed as producing the iPhone and iPhone Plus We re excited to be manufacturing iPhone in India an Apple spokesperson told TechCrunch in a statement Read more 2022-09-26 10:16:25
海外TECH Engadget Interpol issues red notice for Terraform Labs founder Do Kwon https://www.engadget.com/interpol-red-notice-terraform-founder-do-kwon-104327535.html?src=rss Interpol issues red notice for Terraform Labs founder Do KwonFollowing a request by South Korean prosecutors Interpol has placed Terraform Labs founder Do Kwon on a quot red notice quot list TechCrunch has reported That will create a request for law enforcement agencies around the world to arrest Kwon following his blockchain company s collapse that took billion from investors with it nbsp After Korean authorities issued an arrest warrant for Kwon last week he tweeted that he was quot not on the run quot or quot anything similar quot However prosecutors said that they believed Kwon left Korea to quot evade investigation quot as he told them through his lawyers that he didn t intend to appear before questioning quot He is clearly on the run as his family members and the company s key finance people also left for the same country Singapore at the same time quot they said Kwon and other Terraform Labs employees are under investigation for financial fraud and tax evasion following the collapse of its stablecoins TerraUSD and Luna The investors many of whom lost their life savings following the collapse filed complaints accusing him of running a Ponzi scheme The crash of the Luna token also played a roll in the collapse of the crypto hedge fund Three Arrows Capital nbsp 2022-09-26 10:43:27
医療系 医療介護 CBnews 次期国民健康づくり運動プラン、目標は50程度に-厚労省が案を提示、期間は12年間 https://www.cbnews.jp/news/entry/20220926193231 健康づくり 2022-09-26 20:00:00
医療系 医療介護 CBnews 「給付と負担」検討開始、介護保険部会-次期制度改正見据え https://www.cbnews.jp/news/entry/20220926194006 介護保険 2022-09-26 19:55:00
ニュース BBC News - Home Deadly gun attack at Russian school https://www.bbc.co.uk/news/world-europe-63032790?at_medium=RSS&at_campaign=KARANGA izhevsk 2022-09-26 10:25:12
ニュース BBC News - Home Doncaster Sheffield Airport to close despite offer https://www.bbc.co.uk/news/uk-england-south-yorkshire-63033676?at_medium=RSS&at_campaign=KARANGA october 2022-09-26 10:30:40
ニュース BBC News - Home Crown court roll-out of pre-recorded evidence in England and Wales complete https://www.bbc.co.uk/news/uk-england-63030938?at_medium=RSS&at_campaign=KARANGA additional 2022-09-26 10:39:48
ニュース BBC News - Home Iranian embassy: Protesters clash with police in London https://www.bbc.co.uk/news/uk-england-london-63029612?at_medium=RSS&at_campaign=KARANGA londonthe 2022-09-26 10:47:13
ニュース BBC News - Home Eddie Jones leaves Danny Care out of England training squad as Saracens' Hugh Tizard called up https://www.bbc.co.uk/sport/rugby-union/63031449?at_medium=RSS&at_campaign=KARANGA Eddie Jones leaves Danny Care out of England training squad as Saracens x Hugh Tizard called upEddie Jones calls up Saracens lock Hugh Tizard and leaves experienced scrum half Danny Care out of his England training squad for the autumn internationals 2022-09-26 10:17:15
ニュース BBC News - Home England v Germany: Trent Alexander-Arnold left out of squad https://www.bbc.co.uk/sport/football/63032975?at_medium=RSS&at_campaign=KARANGA England v Germany Trent Alexander Arnold left out of squadLiverpool right back Trent Alexander Arnold has not been included in England s matchday squad for Monday s Nations League match against Germany 2022-09-26 10:55:04
北海道 北海道新聞 東京六大学野球、明大が勝ち点2 第3週 https://www.hokkaido-np.co.jp/article/736416/ 東京六大学野球 2022-09-26 19:30:00
北海道 北海道新聞 北見市長任期満了まで1年 現職辻氏、3選出馬明言せず 各党「統一選対応が先」 https://www.hokkaido-np.co.jp/article/736337/ 任期満了 2022-09-26 19:30:07
北海道 北海道新聞 コロナ、全数把握を一律で簡略化 病院、保健所の負担軽減 https://www.hokkaido-np.co.jp/article/736415/ 新型コロナウイルス 2022-09-26 19:26:00
北海道 北海道新聞 <19年間のレガシー 札幌ドームとファイターズ>(4)道内後発チームの観戦文化に影響 https://www.hokkaido-np.co.jp/article/736121/ 選手 2022-09-26 19:23:27
北海道 北海道新聞 賛否の中、27日安倍氏国葬 首相、弔問外交スタート https://www.hokkaido-np.co.jp/article/736414/ 日本武道館 2022-09-26 19:23:00
北海道 北海道新聞 ハリス氏、日本防衛に責任 首相、自由な海洋へ連携 https://www.hokkaido-np.co.jp/article/736413/ 安倍晋三 2022-09-26 19:21:00
北海道 北海道新聞 旭川市がパートナー制度導入へ 市議会で市長が方針、時期は言及せず https://www.hokkaido-np.co.jp/article/736405/ lgbtq 2022-09-26 19:13:00
北海道 北海道新聞 脱炭素など支援 ほくほくHGが3行と連携 https://www.hokkaido-np.co.jp/article/736407/ 北陸銀行 2022-09-26 19:17:00
北海道 北海道新聞 コロナ全数把握見直し 新たな調査手法焦点 厚労省「定点把握」検討 専門家は重層的調査求める https://www.hokkaido-np.co.jp/article/736404/ 新型コロナウイルス 2022-09-26 19:10:00
北海道 北海道新聞 苫小牧市、公共施設に「PPA」来年度初導入 発電事業者・太陽光パネル設置/市・電気購入しCO2排出削減 https://www.hokkaido-np.co.jp/article/736397/ 公共施設 2022-09-26 19:03:00
IT 週刊アスキー ラズベリーパイをワイヤレスで運用できる防塵防水ディスプレー「ラズベリーパイ+LTEボード内蔵 防塵防水 4K モニター」 https://weekly.ascii.jp/elem/000/004/106/4106606/ 防水 2022-09-26 19:40:00
IT 週刊アスキー ベートーヴェンの魅力を存分に楽しめる「第179回 NTT東日本 N響コンサート」が11月7日に開催 https://weekly.ascii.jp/elem/000/004/106/4106603/ 魅力 2022-09-26 19:10:00
IT 週刊アスキー 「プロジェクトEGG」20周年企画「100タイトル無料」キャンペーン月替り第11弾タイトルが発表! https://weekly.ascii.jp/elem/000/004/106/4106604/ 発表 2022-09-26 19:05:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)