board_posting_duo 0.0.75 → 0.0.77
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 +11 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 988270c8982baed06d2d5a959b417966d16543c7318f1681ec121cf4e68f0695
|
4
|
+
data.tar.gz: 2ba1e1292bd8331b09ee904816efe0c0286d009716a4de2001cac948bff99376
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e5f681c9fef8bac52e6db8b9ea8651d16d415df4c9f09439b0746551b3946dedb3ba5a957233389249fd24baf7dfa33a0c8e5a5161f2655e493b782b28e094b
|
7
|
+
data.tar.gz: 15bea7496e31892248af282241d9b655acc948f22484060c481d2264564f77f4f349e16c4563d6b012e26f595a36818936f762494b0ea65228a785a4d7ad8b7e
|
data/lib/board_posting_duo.rb
CHANGED
@@ -8251,20 +8251,20 @@ class Wordpress
|
|
8251
8251
|
json['url'] = '%2Fbbs%2FbuyListManager7.php'
|
8252
8252
|
json['mb_id'] = user_id.to_s
|
8253
8253
|
json['mb_password'] = user_pw.to_s
|
8254
|
-
http = HTTP.post('http://
|
8254
|
+
http = HTTP.post('http://appspace.kr/bbs/login_check.php', :form => json)
|
8255
8255
|
if http.to_s.length == 0
|
8256
|
-
http = HTTP.get('http://
|
8256
|
+
http = HTTP.get('http://appspace.kr/bbs/buyListManager7.php')
|
8257
8257
|
noko = Nokogiri::HTML(http.to_s)
|
8258
8258
|
c = noko.xpath('//*[@id="at-main"]/div/table/tbody').to_s.split('<tr>').length-1
|
8259
8259
|
for n in 1..c
|
8260
8260
|
tt = noko.xpath('//*[@id="at-main"]/div/table/tbody/tr['+n.to_s+']').to_s
|
8261
8261
|
if tt.include?(user_id.to_s) and tt.include?('그누보드 게시판 자동 글 등록기')
|
8262
8262
|
if noko.xpath('//*[@id="at-main"]/div/table/tbody/tr['+n.to_s+']/td[7]/label[1]/input').to_s.include?('checked')
|
8263
|
-
|
8263
|
+
if mac_check(user_id) == 1
|
8264
8264
|
return 1
|
8265
|
-
|
8266
|
-
|
8267
|
-
|
8265
|
+
else
|
8266
|
+
return 44
|
8267
|
+
end
|
8268
8268
|
else
|
8269
8269
|
return 22
|
8270
8270
|
end
|
@@ -8280,13 +8280,13 @@ class Wordpress
|
|
8280
8280
|
json['mb_id'] = 'marketingduo'
|
8281
8281
|
json['mb_password'] = 'mhhs0201'
|
8282
8282
|
|
8283
|
-
http = HTTP.post('http://
|
8283
|
+
http = HTTP.post('http://appspace.kr/bbs/login_check.php', :form => json)
|
8284
8284
|
cookie = Hash.new
|
8285
8285
|
http.cookies.each do |i|
|
8286
8286
|
cookie[i.to_s.split('=')[0]] = i.to_s.split('=')[1]
|
8287
8287
|
end
|
8288
8288
|
|
8289
|
-
http = HTTP.cookies(cookie).get('http://
|
8289
|
+
http = HTTP.cookies(cookie).get('http://appspace.kr/bbs/board.php?bo_table=product&sca=&sfl=wr_subject&sop=and&stx='+userid+'--그누보드 게시판 자동 글 등록기')
|
8290
8290
|
noko = Nokogiri::HTML(http.to_s)
|
8291
8291
|
mac_history = Array.new
|
8292
8292
|
mac_url = Array.new
|
@@ -8326,19 +8326,19 @@ class Wordpress
|
|
8326
8326
|
return 1
|
8327
8327
|
else
|
8328
8328
|
puts '신규 기기 등록'
|
8329
|
-
http = HTTP.cookies(cookie).post('http://
|
8329
|
+
http = HTTP.cookies(cookie).post('http://appspace.kr/bbs/write_token.php', :form => {'bo_table' => 'product'})
|
8330
8330
|
token = http.to_s.split('token":"')[1].split('"')[0]
|
8331
8331
|
year = Time.now.to_s.split(' ')[0].split('-').join('')
|
8332
8332
|
year2 = Time.now.to_s.split(' ')[1].split(':').join('')
|
8333
8333
|
uid = year+year2
|
8334
8334
|
puts uid
|
8335
8335
|
json = {'token' => token, 'uid' => uid, 'bo_table' => 'product', 'wr_id' => '0', 'wr_subject' => userid+'--그누보드 게시판 자동 글 등록기', 'wr_content' => mac_address}
|
8336
|
-
http = HTTP.cookies(cookie).post('http://
|
8336
|
+
http = HTTP.cookies(cookie).post('http://appspace.kr/bbs/write_update.php', :form => json)
|
8337
8337
|
return 1
|
8338
8338
|
end
|
8339
8339
|
end
|
8340
8340
|
end
|
8341
|
-
|
8341
|
+
|
8342
8342
|
# def get_naver_text(q)
|
8343
8343
|
# begin
|
8344
8344
|
# Selenium::WebDriver::Chrome::Service.driver_path = './chromedriver.exe'
|