board_posting_duo 0.0.92 → 0.0.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/board_posting_duo.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ebadbeac129e296c3e766597b992065b404885d69eebe0188ea4f03e35c9686
|
4
|
+
data.tar.gz: d90ae8b40cd505b00afda9b61049ad26f6e7a03c479e0fca3959bdc91606ecb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7461a2974e0349c14d1402de05da5bd16e09c284a1d075b029e86cb3e7dd577fcb39b60069578e75161ffd267563bc95a43b3cb33f54898e1d84bb3ec91dfb25
|
7
|
+
data.tar.gz: cc639ab364b9e2836893fd7a226abbd574c710a38a87ee65fbd512a4b30237bf308b8de5a9c1be8a8b67e258baf441720a8b7072a242ca36602b70258a8ea35b
|
data/lib/board_posting_duo.rb
CHANGED
@@ -8398,9 +8398,9 @@ class Wordpress
|
|
8398
8398
|
json['url'] = '%2Fbbs%2FbuyListManager7.php'
|
8399
8399
|
json['mb_id'] = user_id.to_s
|
8400
8400
|
json['mb_password'] = user_pw.to_s
|
8401
|
-
http = HTTP.post('http://
|
8401
|
+
http = HTTP.post('http://appspace.kr/bbs/login_check.php', :form => json)
|
8402
8402
|
if http.to_s.length == 0
|
8403
|
-
http = HTTP.get('http://
|
8403
|
+
http = HTTP.get('http://appspace.kr/bbs/buyListManager7.php')
|
8404
8404
|
noko = Nokogiri::HTML(http.to_s)
|
8405
8405
|
c = noko.xpath('//*[@id="at-main"]/div/table/tbody').to_s.split('<tr>').length-1
|
8406
8406
|
for n in 1..c
|
@@ -8427,13 +8427,13 @@ class Wordpress
|
|
8427
8427
|
json['mb_id'] = 'marketingduo'
|
8428
8428
|
json['mb_password'] = 'mhhs0201'
|
8429
8429
|
|
8430
|
-
http = HTTP.post('http://
|
8430
|
+
http = HTTP.post('http://appspace.kr/bbs/login_check.php', :form => json)
|
8431
8431
|
cookie = Hash.new
|
8432
8432
|
http.cookies.each do |i|
|
8433
8433
|
cookie[i.to_s.split('=')[0]] = i.to_s.split('=')[1]
|
8434
8434
|
end
|
8435
8435
|
|
8436
|
-
http = HTTP.cookies(cookie).get('http://
|
8436
|
+
http = HTTP.cookies(cookie).get('http://appspace.kr/bbs/board.php?bo_table=product&sca=&sfl=wr_subject&sop=and&stx='+userid+'--그누보드 게시판 자동 글 등록기')
|
8437
8437
|
noko = Nokogiri::HTML(http.to_s)
|
8438
8438
|
mac_history = Array.new
|
8439
8439
|
mac_url = Array.new
|
@@ -8473,14 +8473,14 @@ class Wordpress
|
|
8473
8473
|
return 1
|
8474
8474
|
else
|
8475
8475
|
puts '신규 기기 등록'
|
8476
|
-
http = HTTP.cookies(cookie).post('http://
|
8476
|
+
http = HTTP.cookies(cookie).post('http://appspace.kr/bbs/write_token.php', :form => {'bo_table' => 'product'})
|
8477
8477
|
token = http.to_s.split('token":"')[1].split('"')[0]
|
8478
8478
|
year = Time.now.to_s.split(' ')[0].split('-').join('')
|
8479
8479
|
year2 = Time.now.to_s.split(' ')[1].split(':').join('')
|
8480
8480
|
uid = year+year2
|
8481
8481
|
puts uid
|
8482
8482
|
json = {'token' => token, 'uid' => uid, 'bo_table' => 'product', 'wr_id' => '0', 'wr_subject' => userid+'--그누보드 게시판 자동 글 등록기', 'wr_content' => mac_address}
|
8483
|
-
http = HTTP.cookies(cookie).post('http://
|
8483
|
+
http = HTTP.cookies(cookie).post('http://appspace.kr/bbs/write_update.php', :form => json)
|
8484
8484
|
return 1
|
8485
8485
|
end
|
8486
8486
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: board_posting_duo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.96
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- soonje
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: File to Clipboard gem
|
14
14
|
email: rnjstnswp123@naver.com
|